Skip to content

Commit 196d204

Browse files
committed
nit
1 parent a0e6965 commit 196d204

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/specialize.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ _PyCode_Quicken(_Py_CODEUNIT *instructions, Py_ssize_t size, int enable_counters
4747
#if ENABLE_SPECIALIZATION_FT
4848
_Py_BackoffCounter jump_counter, adaptive_counter;
4949
if (enable_counters) {
50+
PyThreadState *tstate = _PyThreadState_GET();
51+
_PyThreadStateImpl *tstate_impl = (_PyThreadStateImpl *)tstate;
5052
jump_counter = initial_jump_backoff_counter(
51-
JUMP_BACKWARD_INITIAL_VALUE,
52-
JUMP_BACKWARD_INITIAL_BACKOFF);
53+
tstate_impl->policy.jit.jump_backward_initial_value,
54+
tstate_impl->policy.jit.jump_backward_initial_backoff);
5355
adaptive_counter = adaptive_counter_warmup();
5456
}
5557
else {

0 commit comments

Comments
 (0)