GH-117760: Streamline the trashcan mechanism (GH-117763)

This commit is contained in:
Mark Shannon 2024-04-17 11:08:05 +01:00 committed by GitHub
parent c917b3e8e1
commit 147cd0581e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 44 additions and 129 deletions

View file

@ -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) {