From: Ken Jin Date: Mon, 22 Dec 2025 14:57:13 +0000 (+0800) Subject: gh-142476: Fix Windows crashing with JIT (GH-143021) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ded3dd4e9a46c279f880f5096f83a5ae1971b99;p=thirdparty%2FPython%2Fcpython.git gh-142476: Fix Windows crashing with JIT (GH-143021) Fix Windows crashing with JIT --- 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 {