diff options
author | Donghee Na <donghee.na@python.org> | 2024-02-01 20:53:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 20:53:53 (GMT) |
commit | 13907968d73b3b602c81e240fb7892a2627974d6 (patch) | |
tree | 1113a242a55c14484f81d0997a167cacc5e42da1 /Objects/floatobject.c | |
parent | 587d4802034749e2aace9c00b00bd73eccdae1e7 (diff) | |
download | cpython-13907968d73b3b602c81e240fb7892a2627974d6.zip cpython-13907968d73b3b602c81e240fb7892a2627974d6.tar.gz cpython-13907968d73b3b602c81e240fb7892a2627974d6.tar.bz2 |
gh-111968: Use per-thread freelists for dict in free-threading (gh-114323)
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index b7611d5..c440e0d 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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 |