summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-05 01:14:40 +0200
committerGitHub <noreply@github.com>2020-06-05 01:14:40 +0200
commit7daba6f221e713f7f60c613b246459b07d179f91 (patch)
tree54d09c4a586483468666fc635dee8152e5d8e102 /Python
parent2ba59370c3dda2ac229c14510e53a05074b133d1 (diff)
downloadcpython-git-7daba6f221e713f7f60c613b246459b07d179f91.tar.gz
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')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 716303cffc..ee9d698d7d 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) {