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 12add38 commit 3fa92e7Copy full SHA for 3fa92e7
1 file changed
Modules/_testinternalcapi/interpreter.c
@@ -18,8 +18,13 @@ int Test_EvalFrame_Resumes, Test_EvalFrame_Loads;
18
static int
19
stop_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame)
20
{
21
- (void)(tstate);
22
(void)(frame);
+ // Don't actually JIT-compile in this test eval-frame, but we still must
23
+ // finalize the tracer so the thread-global is_tracing flag is reset.
24
+ // Otherwise a trace started inside this duplicated interpreter loop
25
+ // (reachable under low JIT thresholds, e.g. PYTHON_JIT_STRESS=1) would
26
+ // leave is_tracing stuck true and permanently disable the JIT.
27
+ _PyJit_FinalizeTracing(tstate, 0);
28
return 0;
29
}
30
#endif
0 commit comments