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

Fix Windows crashing with JIT
This commit is contained in:
Ken Jin 2025-12-22 22:57:13 +08:00 committed by GitHub
parent ff7f62eb23
commit 9ded3dd4e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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 {