Skip to content

Commit bc86f70

Browse files
reduce diff
1 parent 0c1f2e6 commit bc86f70

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ _PyJit_TryInitializeTracing(PyThreadState *tstate, _PyInterpreterFrame *frame,
233233
_Py_CODEUNIT *close_loop_instr, int curr_stackdepth, int chain_depth, _PyExitData *exit,
234234
int oparg);
235235

236-
void _PyJit_ResetTracing(PyThreadState *tstate);
236+
void _PyJit_FinalizeTracing(PyThreadState *tstate);
237237
void _PyJit_TracerFree(_PyThreadStateImpl *_tstate);
238238

239239
void _PyJit_Tracer_InvalidateDependency(PyThreadState *old_tstate, void *obj);

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ stop_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame)
14851485
exit->temperature = initial_temperature_backoff_counter(&_tstate->policy);
14861486
}
14871487
}
1488-
_PyJit_ResetTracing(tstate);
1488+
_PyJit_FinalizeTracing(tstate);
14891489
return err;
14901490
}
14911491
#endif

Python/optimizer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ _PyJit_TryInitializeTracing(
10241024
// Don't error, just go to next instruction.
10251025
return 0;
10261026
}
1027+
_tstate->jit_tracer_state->is_tracing = false;
10271028
}
10281029
_PyJitTracerState *tracer = _tstate->jit_tracer_state;
10291030
// A recursive trace.
@@ -1083,7 +1084,7 @@ _PyJit_TryInitializeTracing(
10831084
}
10841085

10851086
Py_NO_INLINE void
1086-
_PyJit_ResetTracing(PyThreadState *tstate)
1087+
_PyJit_FinalizeTracing(PyThreadState *tstate)
10871088
{
10881089
_PyThreadStateImpl *_tstate = (_PyThreadStateImpl *)tstate;
10891090
_PyJitTracerState *tracer = _tstate->jit_tracer_state;

Python/pystate.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1554,7 +1554,6 @@ init_threadstate(_PyThreadStateImpl *_tstate,
15541554
"PYTHON_JIT_SIDE_EXIT_INITIAL_BACKOFF",
15551555
SIDE_EXIT_INITIAL_BACKOFF, 0, MAX_BACKOFF);
15561556
_tstate->jit_tracer_state = NULL;
1557-
_PyJit_ResetTracing(tstate);
15581557
#endif
15591558
tstate->delete_later = NULL;
15601559

0 commit comments

Comments
 (0)