From e9badee66a700823b6e02197bd0718937df78086 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Mon, 9 Aug 2021 17:13:09 +0100 Subject: [PATCH 1/2] bpo-44872: use new trashcan macros in framobject.c --- Objects/frameobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/frameobject.c b/Objects/frameobject.c index d1b8048fceadf7..2af69597c396ee 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -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 From 9511895ddb89c99d069b41c2d1c5f42c4200c17e Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 16:16:05 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core and Builtins/2021-08-09-16-16-03.bpo-44872.OKRlhK.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2021-08-09-16-16-03.bpo-44872.OKRlhK.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-08-09-16-16-03.bpo-44872.OKRlhK.rst b/Misc/NEWS.d/next/Core and Builtins/2021-08-09-16-16-03.bpo-44872.OKRlhK.rst new file mode 100644 index 00000000000000..9a0d00018b2a7c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-08-09-16-16-03.bpo-44872.OKRlhK.rst @@ -0,0 +1 @@ +Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END). \ No newline at end of file