diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-04 22:50:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 22:50:05 (GMT) |
commit | 2ba59370c3dda2ac229c14510e53a05074b133d1 (patch) | |
tree | 88cd810f62d0c5ae34a83a10e05268e33ea0da57 /Modules/gcmodule.c | |
parent | 69ac6e58fd98de339c013fe64cd1cf763e4f9bca (diff) | |
download | cpython-2ba59370c3dda2ac229c14510e53a05074b133d1.zip cpython-2ba59370c3dda2ac229c14510e53a05074b133d1.tar.gz cpython-2ba59370c3dda2ac229c14510e53a05074b133d1.tar.bz2 |
bpo-40521: Make float free list per-interpreter (GH-20636)
Each interpreter now has its own float free list:
* Move tuple numfree and free_list into PyInterpreterState.
* Add _Py_float_state structure.
* Add tstate parameter to _PyFloat_ClearFreeList()
and _PyFloat_Fini().
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 1f5aa93..0bad0f8 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1028,7 +1028,7 @@ clear_freelists(void) PyThreadState *tstate = _PyThreadState_GET(); _PyFrame_ClearFreeList(); _PyTuple_ClearFreeList(tstate); - _PyFloat_ClearFreeList(); + _PyFloat_ClearFreeList(tstate); _PyList_ClearFreeList(); _PyDict_ClearFreeList(); _PyAsyncGen_ClearFreeLists(); |