File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END).
Original file line number Diff line number Diff line change @@ -575,7 +575,7 @@ frame_dealloc(PyFrameObject *f)
575
575
if (_PyObject_GC_IS_TRACKED (f ))
576
576
_PyObject_GC_UNTRACK (f );
577
577
578
- Py_TRASHCAN_SAFE_BEGIN ( f )
578
+ Py_TRASHCAN_BEGIN ( f , frame_dealloc );
579
579
/* Kill all local variables */
580
580
valuestack = f -> f_valuestack ;
581
581
for (p = f -> f_localsplus ; p < valuestack ; p ++ )
@@ -609,7 +609,7 @@ frame_dealloc(PyFrameObject *f)
609
609
}
610
610
611
611
Py_DECREF (co );
612
- Py_TRASHCAN_SAFE_END ( f )
612
+ Py_TRASHCAN_END ;
613
613
}
614
614
615
615
static inline Py_ssize_t
You can’t perform that action at this time.
0 commit comments