Skip to content

Commit 4268031

Browse files
committed
Initialize frame->lltrace to zero
1 parent 8e57877 commit 4268031

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Include/internal/pycore_frame.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ _PyFrame_Initialize(
215215
frame->return_offset = 0;
216216
frame->owner = FRAME_OWNED_BY_THREAD;
217217
frame->visited = 0;
218+
#ifdef Py_DEBUG
219+
frame->lltrace = 0;
220+
#endif
218221

219222
for (int i = null_locals_from; i < code->co_nlocalsplus; i++) {
220223
frame->localsplus[i] = PyStackRef_NULL;
@@ -398,6 +401,9 @@ _PyFrame_PushTrampolineUnchecked(PyThreadState *tstate, PyCodeObject *code, int
398401
#endif
399402
frame->owner = FRAME_OWNED_BY_THREAD;
400403
frame->visited = 0;
404+
#ifdef Py_DEBUG
405+
frame->lltrace = 0;
406+
#endif
401407
frame->return_offset = 0;
402408

403409
#ifdef Py_GIL_DISABLED

0 commit comments

Comments
 (0)