Skip to content

Commit e9ec71a

Browse files
authored
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27690)
1 parent d657da8 commit e9ec71a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END).

Objects/frameobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ frame_dealloc(PyFrameObject *f)
581581
_PyObject_GC_UNTRACK(f);
582582
}
583583

584-
Py_TRASHCAN_SAFE_BEGIN(f)
584+
Py_TRASHCAN_BEGIN(f, frame_dealloc);
585585
/* Kill all local variables */
586586
PyObject **valuestack = f->f_valuestack;
587587
for (PyObject **p = f->f_localsplus; p < valuestack; p++) {
@@ -621,7 +621,7 @@ frame_dealloc(PyFrameObject *f)
621621
}
622622

623623
Py_DECREF(co);
624-
Py_TRASHCAN_SAFE_END(f)
624+
Py_TRASHCAN_END;
625625
}
626626

627627
static inline Py_ssize_t

0 commit comments

Comments
 (0)