Skip to content

Commit ede1dc4

Browse files
authored
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27691)
1 parent fcbe8c6 commit ede1dc4

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
@@ -575,7 +575,7 @@ frame_dealloc(PyFrameObject *f)
575575
if (_PyObject_GC_IS_TRACKED(f))
576576
_PyObject_GC_UNTRACK(f);
577577

578-
Py_TRASHCAN_SAFE_BEGIN(f)
578+
Py_TRASHCAN_BEGIN(f, frame_dealloc);
579579
/* Kill all local variables */
580580
valuestack = f->f_valuestack;
581581
for (p = f->f_localsplus; p < valuestack; p++)
@@ -609,7 +609,7 @@ frame_dealloc(PyFrameObject *f)
609609
}
610610

611611
Py_DECREF(co);
612-
Py_TRASHCAN_SAFE_END(f)
612+
Py_TRASHCAN_END;
613613
}
614614

615615
static inline Py_ssize_t

0 commit comments

Comments
 (0)