summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-04-17 10:08:05 (GMT)
committerGitHub <noreply@github.com>2024-04-17 10:08:05 (GMT)
commit147cd0581e35a10204776029aeaa7fa1901056bc (patch)
tree224715ae49724e26786a6b7a18e2e5c3e4d2deb4 /Python
parentc917b3e8e113a3e1ffe118e581fac29eaf365191 (diff)
downloadcpython-147cd0581e35a10204776029aeaa7fa1901056bc.zip
cpython-147cd0581e35a10204776029aeaa7fa1901056bc.tar.gz
cpython-147cd0581e35a10204776029aeaa7fa1901056bc.tar.bz2
GH-117760: Streamline the trashcan mechanism (GH-117763)
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index ac38866..37480df 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -1485,6 +1485,8 @@ init_threadstate(_PyThreadStateImpl *_tstate,
tstate->what_event = -1;
tstate->previous_executor = NULL;
+ tstate->delete_later = NULL;
+
llist_init(&_tstate->mem_free_queue);
if (interp->stoptheworld.requested || _PyRuntime.stoptheworld.requested) {