aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-03-27 16:53:05 -0600
committerGitHub <noreply@github.com>2023-03-27 16:53:05 -0600
commit89e67ada6958cfd8d4eec221848f81b2619de099 (patch)
treeaa6218f3ce5294b879837ef8b1e53740f03ff9ae /Python/pylifecycle.c
parent34eb6f727632d9a1a6998f90c9421e420c785643 (diff)
downloadcpython-89e67ada6958cfd8d4eec221848f81b2619de099.tar.gz
cpython-89e67ada6958cfd8d4eec221848f81b2619de099.zip
gh-100227: Revert gh-102925 "gh-100227: Make the Global Interned Dict Safe for Isolated Interpreters" (gh-103063)
This reverts commit 87be8d9. This approach to keeping the interned strings safe is turning out to be too complex for my taste (due to obmalloc isolation). For now I'm going with the simpler solution, making the dict per-interpreter. We can revisit that later if we want a sharing solution.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 5d7f8621833..8110d94ba17 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -636,8 +636,6 @@ pycore_create_interpreter(_PyRuntimeState *runtime,
return status;
}
- _PyThreadState_InitDetached(&runtime->cached_objects.main_tstate, interp);
-
*tstate_p = tstate;
return _PyStatus_OK();
}
@@ -1934,8 +1932,6 @@ Py_FinalizeEx(void)
// XXX Do this sooner during finalization.
// XXX Ensure finalizer errors are handled properly.
- _PyThreadState_ClearDetached(&runtime->cached_objects.main_tstate);
-
finalize_interp_clear(tstate);
finalize_interp_delete(tstate->interp);