Skip to content

Commit 0ac1c07

Browse files
committed
Set visited on entry frame
1 parent 5c3a5ef commit 0ac1c07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/ceval.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
817817
entry_frame.instr_ptr = (_Py_CODEUNIT *)_Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS + 1;
818818
entry_frame.stackpointer = entry_frame.localsplus;
819819
entry_frame.owner = FRAME_OWNED_BY_CSTACK;
820+
entry_frame.visited = 0;
820821
entry_frame.return_offset = 0;
821822
/* Push frame */
822823
entry_frame.previous = tstate->current_frame;

0 commit comments

Comments
 (0)