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 @@ -423,7 +423,7 @@ frame_dealloc(PyFrameObject *f)
423
423
if (_PyObject_GC_IS_TRACKED (f ))
424
424
_PyObject_GC_UNTRACK (f );
425
425
426
- Py_TRASHCAN_SAFE_BEGIN ( f )
426
+ Py_TRASHCAN_BEGIN ( f , frame_dealloc );
427
427
/* Kill all local variables */
428
428
valuestack = f -> f_valuestack ;
429
429
for (p = f -> f_localsplus ; p < valuestack ; p ++ )
@@ -453,7 +453,7 @@ frame_dealloc(PyFrameObject *f)
453
453
PyObject_GC_Del (f );
454
454
455
455
Py_DECREF (co );
456
- Py_TRASHCAN_SAFE_END ( f )
456
+ Py_TRASHCAN_END ;
457
457
}
458
458
459
459
static int
You can’t perform that action at this time.
0 commit comments