summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-04 23:14:40 (GMT)
committerGitHub <noreply@github.com>2020-06-04 23:14:40 (GMT)
commit7daba6f221e713f7f60c613b246459b07d179f91 (patch)
tree54d09c4a586483468666fc635dee8152e5d8e102 /Python/pylifecycle.c
parent2ba59370c3dda2ac229c14510e53a05074b133d1 (diff)
downloadcpython-7daba6f221e713f7f60c613b246459b07d179f91.zip
cpython-7daba6f221e713f7f60c613b246459b07d179f91.tar.gz
cpython-7daba6f221e713f7f60c613b246459b07d179f91.tar.bz2
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().
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 716303c..ee9d698 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -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) {