diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-08-16 10:03:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 10:03:05 (GMT) |
commit | aa9707dda9f8dcbe2ada8d8a7280f0f6a8229c59 (patch) | |
tree | 65b508c11793840d27e9f6b29c96496c740e75d5 /Python/pystate.c | |
parent | bd2ef82a5010985abdeef2ca71bcbcc9a366993b (diff) | |
download | cpython-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.c | 1 |
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); |