commit | 7daba6f221e713f7f60c613b246459b07d179f91 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Jun 05 01:14:40 2020 +0200 |
committer | GitHub <noreply@github.com> | Fri Jun 05 01:14:40 2020 +0200 |
tree | 54d09c4a586483468666fc635dee8152e5d8e102 | |
parent | 2ba59370c3dda2ac229c14510e53a05074b133d1 [diff] |
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().
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 @@ if (is_main_interp) { _PyDict_Fini(); - _PySlice_Fini(); } + _PySlice_Fini(tstate); _PyWarnings_Fini(tstate->interp); if (is_main_interp) {