bpo-40521: Make slice cache per-interpreter (GH-20637)

Each interpreter now has its own slice cache:

* Move slice cache into PyInterpreterState.
* Add tstate parameter to _PySlice_Fini().
This commit is contained in:
Victor Stinner 2020-06-05 01:14:40 +02:00 committed by GitHub
parent 2ba59370c3
commit 7daba6f221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 18 deletions

View file

@ -1,2 +1,3 @@
Tuple free lists, empty tuple singleton, and float free list are no longer
shared by all interpreters: each interpreter now its own free lists.
The tuple free lists, the empty tuple singleton, the float free list, and the
slice cache are no longer shared by all interpreters: each interpreter now has
its own free lists and caches.