We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d657da8 commit e9ec71aCopy full SHA for e9ec71a
Misc/NEWS.d/next/Core and Builtins/2021-08-09-16-16-03.bpo-44872.OKRlhK.rst
@@ -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
@@ -581,7 +581,7 @@ frame_dealloc(PyFrameObject *f)
581
_PyObject_GC_UNTRACK(f);
582
}
583
584
- Py_TRASHCAN_SAFE_BEGIN(f)
+ Py_TRASHCAN_BEGIN(f, frame_dealloc);
585
/* Kill all local variables */
586
PyObject **valuestack = f->f_valuestack;
587
for (PyObject **p = f->f_localsplus; p < valuestack; p++) {
@@ -621,7 +621,7 @@ frame_dealloc(PyFrameObject *f)
621
622
623
Py_DECREF(co);
624
- Py_TRASHCAN_SAFE_END(f)
+ Py_TRASHCAN_END;
625
626
627
static inline Py_ssize_t
0 commit comments