summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-04 22:50:05 (GMT)
committerGitHub <noreply@github.com>2020-06-04 22:50:05 (GMT)
commit2ba59370c3dda2ac229c14510e53a05074b133d1 (patch)
tree88cd810f62d0c5ae34a83a10e05268e33ea0da57 /Python
parent69ac6e58fd98de339c013fe64cd1cf763e4f9bca (diff)
downloadcpython-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 'Python')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 9da3fb0..716303c 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1261,9 +1261,9 @@ finalize_interp_types(PyThreadState *tstate, int is_main_interp)
}
_PyLong_Fini(tstate);
+ _PyFloat_Fini(tstate);
if (is_main_interp) {
- _PyFloat_Fini();
_PyDict_Fini();
_PySlice_Fini();
}