mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
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:
parent
2ba59370c3
commit
7daba6f221
5 changed files with 24 additions and 18 deletions
|
@ -1265,9 +1265,9 @@ finalize_interp_types(PyThreadState *tstate, int is_main_interp)
|
|||
|
||||
if (is_main_interp) {
|
||||
_PyDict_Fini();
|
||||
_PySlice_Fini();
|
||||
}
|
||||
|
||||
_PySlice_Fini(tstate);
|
||||
_PyWarnings_Fini(tstate->interp);
|
||||
|
||||
if (is_main_interp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue