mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-44872: use new trashcan macros in framobject.c (#27683)
This commit is contained in:
parent
b33186bc43
commit
7d14fdb03c
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).
|
|
@ -619,7 +619,7 @@ frame_dealloc(PyFrameObject *f)
|
|||
_PyObject_GC_UNTRACK(f);
|
||||
}
|
||||
|
||||
Py_TRASHCAN_SAFE_BEGIN(f)
|
||||
Py_TRASHCAN_BEGIN(f, frame_dealloc);
|
||||
PyCodeObject *co = NULL;
|
||||
|
||||
/* Kill all local variables including specials, if we own them */
|
||||
|
@ -659,7 +659,7 @@ frame_dealloc(PyFrameObject *f)
|
|||
}
|
||||
|
||||
Py_XDECREF(co);
|
||||
Py_TRASHCAN_SAFE_END(f)
|
||||
Py_TRASHCAN_END;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue