diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-23 09:33:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 09:33:18 (GMT) |
commit | b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0 (patch) | |
tree | a121d0df89bdc965649d65a0ca50543293431e61 /Misc | |
parent | 26a1ad1c24717990265b71ed093d691500d6301c (diff) | |
download | cpython-b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0.zip cpython-b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0.tar.gz cpython-b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0.tar.bz2 |
bpo-40521: Make dict free lists per-interpreter (GH-20645)
Each interpreter now has its own dict free list:
* Move dict free lists into PyInterpreterState.
* Move PyDict_MAXFREELIST define to pycore_interp.h
* Add _Py_dict_state structure.
* Add tstate parameter to _PyDict_ClearFreeList() and _PyDict_Fini().
* In debug mode, ensure that the dict free lists are not used after
_PyDict_Fini() is called.
* Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst index 39cb804..3406ca8 100644 --- a/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst +++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst @@ -1,4 +1,5 @@ The tuple free lists, the empty tuple singleton, the list free list, the float -free list, the slice cache, the frame free list, the asynchronous generator -free lists, and the context free list are no longer shared by all interpreters: -each interpreter now its has own free lists and caches. +free list, the slice cache, the dict free lists, the frame free list, the +asynchronous generator free lists, and the context free list are no longer +shared by all interpreters: each interpreter now its has own free lists and +caches. |