From f1c3eeebd7082a3cf045ce0f479c268d778bb4ae Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sat, 20 Dec 2025 13:19:07 +0000 Subject: [PATCH] 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 16abced6edbeec..93548554938748 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 {