Skip to content

Commit b019ffe

Browse files
authored
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27692)
1 parent 0a42309 commit b019ffe

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
@@ -423,7 +423,7 @@ frame_dealloc(PyFrameObject *f)
423423
if (_PyObject_GC_IS_TRACKED(f))
424424
_PyObject_GC_UNTRACK(f);
425425

426-
Py_TRASHCAN_SAFE_BEGIN(f)
426+
Py_TRASHCAN_BEGIN(f, frame_dealloc);
427427
/* Kill all local variables */
428428
valuestack = f->f_valuestack;
429429
for (p = f->f_localsplus; p < valuestack; p++)
@@ -453,7 +453,7 @@ frame_dealloc(PyFrameObject *f)
453453
PyObject_GC_Del(f);
454454

455455
Py_DECREF(co);
456-
Py_TRASHCAN_SAFE_END(f)
456+
Py_TRASHCAN_END;
457457
}
458458

459459
static int

0 commit comments

Comments
 (0)