mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
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().
This commit is contained in:
parent
69ac6e58fd
commit
2ba59370c3
7 changed files with 45 additions and 32 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue