gh-111968: Use per-thread freelists for dict in free-threading (gh-114323)

This commit is contained in:
Donghee Na 2024-02-02 05:53:53 +09:00 committed by GitHub
parent 587d480203
commit 13907968d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 75 additions and 75 deletions

View file

@ -2013,7 +2013,11 @@ _PyFloat_ClearFreeList(_PyFreeListState *freelist_state, int is_finalization)
void
_PyFloat_Fini(_PyFreeListState *state)
{
// With Py_GIL_DISABLED:
// the freelists for the current thread state have already been cleared.
#ifndef Py_GIL_DISABLED
_PyFloat_ClearFreeList(state, 1);
#endif
}
void