]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40521: Make context free list per-interpreter (GH-20644)
authorVictor Stinner <vstinner@python.org>
Fri, 5 Jun 2020 00:56:37 +0000 (02:56 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 00:56:37 +0000 (02:56 +0200)
commite005ead49b1ee2b1507ceea94e6f89c28ecf1f81
treef2846eec88f5539825acc200c3b8a3d91a3b7d0f
parent78a02c2568714562e23e885b6dc5730601f35226
bpo-40521: Make context free list per-interpreter (GH-20644)

Each interpreter now has its own context free list:

* Move context free list into PyInterpreterState.
* Add _Py_context_state structure.
* Add tstate parameter to _PyContext_ClearFreeList()
  and _PyContext_Fini().
* Pass tstate to clear_freelists().
Include/internal/pycore_context.h
Include/internal/pycore_gc.h
Include/internal/pycore_interp.h
Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
Modules/gcmodule.c
Python/context.c
Python/pylifecycle.c