diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-05 02:05:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 02:05:41 +0200 |
commit | 88ec9190105c9b03f49aaef601ce02b242a75273 (patch) | |
tree | 699bea45830306ef5cd9943138a8c03d846e33d3 /Include/internal/pycore_pylifecycle.h | |
parent | 052d3fc0907be253cfd64b2c737a0b0aca586011 (diff) | |
download | cpython-git-88ec9190105c9b03f49aaef601ce02b242a75273.tar.gz |
bpo-40521: Make list free list per-interpreter (GH-20642)
Each interpreter now has its own list free list:
* Move list numfree and free_list into PyInterpreterState.
* Add _Py_list_state structure.
* Add tstate parameter to _PyList_ClearFreeList()
and _PyList_Fini().
* Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
* _PyGC_Fini() clears gcstate->garbage list which can be stored in
the list free list. Call _PyGC_Fini() before _PyList_Fini() to
prevent leaking this list.
Diffstat (limited to 'Include/internal/pycore_pylifecycle.h')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index 06d2ac167d..3c35ca23ea 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -61,7 +61,7 @@ extern PyStatus _PyGC_Init(PyThreadState *tstate); extern void _PyFrame_Fini(PyThreadState *tstate); extern void _PyDict_Fini(void); extern void _PyTuple_Fini(PyThreadState *tstate); -extern void _PyList_Fini(void); +extern void _PyList_Fini(PyThreadState *tstate); extern void _PySet_Fini(void); extern void _PyBytes_Fini(void); extern void _PyFloat_Fini(PyThreadState *tstate); |