mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
GH-124715: Move trashcan mechanism into Py_Dealloc (GH-132280)
This commit is contained in:
parent
0f23e84cda
commit
44e4c479fb
26 changed files with 88 additions and 196 deletions
|
|
@ -236,11 +236,9 @@ tb_dealloc(PyObject *op)
|
|||
{
|
||||
PyTracebackObject *tb = _PyTracebackObject_CAST(op);
|
||||
PyObject_GC_UnTrack(tb);
|
||||
Py_TRASHCAN_BEGIN(tb, tb_dealloc)
|
||||
Py_XDECREF(tb->tb_next);
|
||||
Py_XDECREF(tb->tb_frame);
|
||||
PyObject_GC_Del(tb);
|
||||
Py_TRASHCAN_END
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue