Skip to content

Commit 5e17707

Browse files
Fix a bug with ENTER_EXECUTOR linking
1 parent 72e1738 commit 5e17707

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/optimizer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,10 @@ _PyJit_translate_single_bytecode_to_trace(
621621
return 1;
622622
}
623623

624+
if (opcode == ENTER_EXECUTOR) {
625+
goto full;
626+
}
627+
624628
if (!tstate->interp->jit_state.dependencies_still_valid) {
625629
goto done;
626630
}
@@ -686,10 +690,6 @@ _PyJit_translate_single_bytecode_to_trace(
686690
// One for possible _DEOPT, one because _CHECK_VALIDITY itself might _DEOPT
687691
max_length -= 2;
688692

689-
if (opcode == ENTER_EXECUTOR) {
690-
goto full;
691-
}
692-
693693
const struct opcode_macro_expansion *expansion = &_PyOpcode_macro_expansion[opcode];
694694

695695
ADD_TO_TRACE(_CHECK_VALIDITY, 0, 0, target);

0 commit comments

Comments
 (0)