Skip to content

Commit bf1ddab

Browse files
fix assertion
1 parent c75d91c commit bf1ddab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/jit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction trace[], siz
560560
unsigned char *code = memory;
561561
state.trampolines.mem = memory + code_size;
562562
unsigned char *data = memory + code_size + state.trampolines.size + code_padding;
563-
assert(trace[0].opcode == _START_EXECUTOR || trace[0].opcode == _COLD_EXIT);
563+
assert(trace[0].opcode == _START_EXECUTOR || trace[0].opcode == _COLD_EXIT || trace[0].opcode == _COLD_DYNAMIC_EXIT);
564564
for (size_t i = 0; i < length; i++) {
565565
const _PyUOpInstruction *instruction = &trace[i];
566566
group = &stencil_groups[instruction->opcode];

0 commit comments

Comments
 (0)