summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-08-16 10:03:05 (GMT)
committerGitHub <noreply@github.com>2023-08-16 10:03:05 (GMT)
commitaa9707dda9f8dcbe2ada8d8a7280f0f6a8229c59 (patch)
tree65b508c11793840d27e9f6b29c96496c740e75d5 /Python/pystate.c
parentbd2ef82a5010985abdeef2ca71bcbcc9a366993b (diff)
downloadcpython-aa9707dda9f8dcbe2ada8d8a7280f0f6a8229c59.zip
cpython-aa9707dda9f8dcbe2ada8d8a7280f0f6a8229c59.tar.gz
cpython-aa9707dda9f8dcbe2ada8d8a7280f0f6a8229c59.tar.bz2
[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (#107751)
* Unrevert "[3.12] gh-107080: Fix Py_TRACE_REFS Crashes Under Isolated Subinterpreters (gh-107567) (#107599)". This reverts commit 6e4eec760648a71e1cd8f8f551997b1823b4bb9f (gh-107648). * Initialize each interpreter's refchain properly. * Skip test_basic_multiple_interpreters_deleted_no_reset on tracerefs builds.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 8097124..2ee16e3 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -673,6 +673,7 @@ init_interpreter(PyInterpreterState *interp,
_obmalloc_pools_INIT(interp->obmalloc.pools);
memcpy(&interp->obmalloc.pools.used, temp, sizeof(temp));
}
+ _PyObject_InitState(interp);
_PyEval_InitState(interp, pending_lock);
_PyGC_InitState(&interp->gc);