We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a6e2b commit 6be7a84Copy full SHA for 6be7a84
Python/optimizer.c
@@ -119,6 +119,10 @@ _PyOptimizer_Optimize(
119
_PyStackRef *stack_pointer = frame->stackpointer;
120
PyInterpreterState *interp = _PyInterpreterState_GET();
121
if (!interp->jit) {
122
+ // gh-140936: It is possible that interp->jit will become false during
123
+ // interpreter finalization. However, the specialized JUMP_BACKWARD_JIT
124
+ // instruction may still be present. In this case, we should
125
+ // return immediately without optimization.
126
return 0;
127
}
128
assert(!interp->compiling);
0 commit comments