Skip to content

Commit 0043d48

Browse files
committed
pythongh-94438: in frameobject's mark_stacks, add explicit case for CACHE opcodes which leaves the stack unchanged
1 parent 40d81fd commit 0043d48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Objects/frameobject.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ mark_stacks(PyCodeObject *code_obj, int len)
220220
}
221221
opcode = _Py_OPCODE(code[i]);
222222
switch (opcode) {
223+
case CACHE:
224+
{
225+
stacks[i+1] = stacks[i];
226+
break;
227+
}
223228
case JUMP_IF_FALSE_OR_POP:
224229
case JUMP_IF_TRUE_OR_POP:
225230
case POP_JUMP_FORWARD_IF_FALSE:

0 commit comments

Comments
 (0)