mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27691)
This commit is contained in:
parent
fcbe8c63d7
commit
ede1dc416d
2 changed files with 3 additions and 2 deletions
|
|
@ -0,0 +1 @@
|
|||
Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END).
|
||||
|
|
@ -575,7 +575,7 @@ frame_dealloc(PyFrameObject *f)
|
|||
if (_PyObject_GC_IS_TRACKED(f))
|
||||
_PyObject_GC_UNTRACK(f);
|
||||
|
||||
Py_TRASHCAN_SAFE_BEGIN(f)
|
||||
Py_TRASHCAN_BEGIN(f, frame_dealloc);
|
||||
/* Kill all local variables */
|
||||
valuestack = f->f_valuestack;
|
||||
for (p = f->f_localsplus; p < valuestack; p++)
|
||||
|
|
@ -609,7 +609,7 @@ frame_dealloc(PyFrameObject *f)
|
|||
}
|
||||
|
||||
Py_DECREF(co);
|
||||
Py_TRASHCAN_SAFE_END(f)
|
||||
Py_TRASHCAN_END;
|
||||
}
|
||||
|
||||
static inline Py_ssize_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue