From 9ded3dd4e9a46c279f880f5096f83a5ae1971b99 Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Mon, 22 Dec 2025 22:57:13 +0800 Subject: [PATCH] gh-142476: Fix Windows crashing with JIT (GH-143021) Fix Windows crashing with JIT --- Python/optimizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 16abced6edbe..935485549387 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -188,7 +188,7 @@ _PyOptimizer_Optimize( executor->vm_data.chain_depth = chain_depth; assert(executor->vm_data.valid); _PyExitData *exit = _tstate->jit_tracer_state.initial_state.exit; - if (exit != NULL) { + if (exit != NULL && !progress_needed) { exit->executor = executor; } else { -- 2.47.3