diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-05 00:34:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 00:34:14 (GMT) |
commit | 78a02c2568714562e23e885b6dc5730601f35226 (patch) | |
tree | 167982aa5857ae92f0dd301aaa3e22e908a9d9a1 /Modules | |
parent | 88ec9190105c9b03f49aaef601ce02b242a75273 (diff) | |
download | cpython-78a02c2568714562e23e885b6dc5730601f35226.zip cpython-78a02c2568714562e23e885b6dc5730601f35226.tar.gz cpython-78a02c2568714562e23e885b6dc5730601f35226.tar.bz2 |
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().
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 2f062d0..89e2db7 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1031,7 +1031,7 @@ clear_freelists(void) _PyFloat_ClearFreeList(tstate); _PyList_ClearFreeList(tstate); _PyDict_ClearFreeList(); - _PyAsyncGen_ClearFreeLists(); + _PyAsyncGen_ClearFreeLists(tstate); _PyContext_ClearFreeList(); } |