Skip to content

Commit 01c2d73

Browse files
fix backoff counters
1 parent e9e2bb9 commit 01c2d73

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,6 +2956,7 @@ dummy_func(
29562956
if (!IS_JIT_TRACING() && backoff_counter_triggers(counter) &&
29572957
this_instr->op.code == JUMP_BACKWARD_JIT &&
29582958
next_instr->op.code != ENTER_EXECUTOR) {
2959+
this_instr[1].counter = restart_backoff_counter(counter);
29592960
if (tstate->interp->jit_state.code_buffer == NULL) {
29602961
tstate->interp->jit_state.code_buffer = (_PyUOpInstruction *)_PyObject_VirtualAlloc(UOP_BUFFER_SIZE);
29612962
if (tstate->interp->jit_state.code_buffer == NULL) {

Python/generated_cases.c.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)