]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142476: Fix Windows crashing with JIT (GH-143021)
authorKen Jin <kenjin@python.org>
Mon, 22 Dec 2025 14:57:13 +0000 (22:57 +0800)
committerGitHub <noreply@github.com>
Mon, 22 Dec 2025 14:57:13 +0000 (14:57 +0000)
Fix Windows crashing with JIT

Python/optimizer.c

index 16abced6edbeeca77400179613ad26eb88074247..935485549387483e9d070a51d27a8ba75e3e466f 100644 (file)
@@ -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 {