Skip to content

Commit 3c00eae

Browse files
committed
DO NOT MERGE: Assert that _PyFrame_OpAlreadyRan never sees ENTER_EXECUTOR
1 parent c02730b commit 3c00eae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/frameobject.c

+1
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ _PyFrame_OpAlreadyRan(_PyInterpreterFrame *frame, int opcode, int oparg)
11101110
instruction < frame->prev_instr; instruction++)
11111111
{
11121112
int check_opcode = _PyOpcode_Deopt[instruction->op.code];
1113+
assert(check_opcode != ENTER_EXECUTOR);
11131114
check_oparg |= instruction->op.arg;
11141115
if (check_opcode == opcode && check_oparg == oparg) {
11151116
return 1;

0 commit comments

Comments
 (0)