diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-10-23 16:10:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 16:10:06 (GMT) |
commit | 6f26d496d3c894970ee18a125e9100791ebc2b36 (patch) | |
tree | 62999ec30e17bb0334c82ae7137b10a6d64f3e48 /Python/pystate.c | |
parent | de0d5c6e2e12f24ade1ccc457afaf5fb2c650c64 (diff) | |
download | cpython-6f26d496d3c894970ee18a125e9100791ebc2b36.zip cpython-6f26d496d3c894970ee18a125e9100791ebc2b36.tar.gz cpython-6f26d496d3c894970ee18a125e9100791ebc2b36.tar.bz2 |
gh-125286: Share the Main Refchain With Legacy Interpreters (gh-125709)
They used to be shared, before 3.12. Returning to sharing them resolves a failure on Py_TRACE_REFS builds.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 7df872c..36b31f3 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -629,10 +629,8 @@ init_interpreter(PyInterpreterState *interp, assert(next != NULL || (interp == runtime->interpreters.main)); interp->next = next; - PyStatus status = _PyObject_InitState(interp); - if (_PyStatus_EXCEPTION(status)) { - return status; - } + // We would call _PyObject_InitState() at this point + // if interp->feature_flags were alredy set. _PyEval_InitState(interp); _PyGC_InitState(&interp->gc); |