https://github.com/python/cpython/commit/9ded3dd4e9a46c279f880f5096f83a5ae1971b99
commit: 9ded3dd4e9a46c279f880f5096f83a5ae1971b99
branch: main
author: Ken Jin <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2025-12-22T14:57:13Z
summary:

gh-142476: Fix Windows crashing with JIT (GH-143021)

Fix Windows crashing with JIT

files:
M Python/optimizer.c

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 {

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to