]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40521: Make float free list per-interpreter (GH-20636)
authorVictor Stinner <vstinner@python.org>
Thu, 4 Jun 2020 22:50:05 +0000 (00:50 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2020 22:50:05 +0000 (00:50 +0200)
commit2ba59370c3dda2ac229c14510e53a05074b133d1
tree88cd810f62d0c5ae34a83a10e05268e33ea0da57
parent69ac6e58fd98de339c013fe64cd1cf763e4f9bca
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().
Include/internal/pycore_gc.h
Include/internal/pycore_interp.h
Include/internal/pycore_pylifecycle.h
Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
Modules/gcmodule.c
Objects/floatobject.c
Python/pylifecycle.c