aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-01-16 00:38:57 +0900
committerGitHub <noreply@github.com>2024-01-16 00:38:57 +0900
commit3eae76554b0687c6b9c5c019cc53bb76430488c9 (patch)
treef57ef0919140b9603434f854b40054150c18f54f /Python/pylifecycle.c
parent44e47dfba55a825ce7c340b1460cb493165353c9 (diff)
downloadcpython-3eae76554b0687c6b9c5c019cc53bb76430488c9.tar.gz
cpython-3eae76554b0687c6b9c5c019cc53bb76430488c9.zip
gh-111968: Use per-thread slice_cache in free-threading (gh-113972)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 4198f6a38f0..c33892af1c9 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1752,15 +1752,13 @@ finalize_interp_types(PyInterpreterState *interp)
_PyUnicode_ClearInterned(interp);
_PyDict_Fini(interp);
-
- _PySlice_Fini(interp);
-
_PyUnicode_Fini(interp);
_PyFreeListState *state = _PyFreeListState_GET();
_PyTuple_Fini(state);
_PyList_Fini(state);
_PyFloat_Fini(state);
+ _PySlice_Fini(state);
#ifdef Py_DEBUG
_PyStaticObjects_CheckRefcnt(interp);