]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40521: Make async gen free lists per-interpreter (GH-20643)
authorVictor Stinner <vstinner@python.org>
Fri, 5 Jun 2020 00:34:14 +0000 (02:34 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 00:34:14 +0000 (02:34 +0200)
commit78a02c2568714562e23e885b6dc5730601f35226
tree167982aa5857ae92f0dd301aaa3e22e908a9d9a1
parent88ec9190105c9b03f49aaef601ce02b242a75273
bpo-40521: Make async gen free lists per-interpreter (GH-20643)

Each interpreter now has its own asynchronous generator free lists:

* Move async gen free lists into PyInterpreterState.
* Move _PyAsyncGen_MAXFREELIST define to pycore_interp.h
* Add _Py_async_gen_state structure.
* Add tstate parameter to _PyAsyncGen_ClearFreeLists
  and _PyAsyncGen_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/genobject.c
Python/pylifecycle.c