[3.12] gh-116510: Fix a crash due to shared immortal interned strings. (gh-124541)
Fix a crash caused by immortal interned strings being shared between sub-interpreters that use basic single-phase init. In that case, the string can be used by an interpreter that outlives the interpreter that created and interned it. For interpreters that share obmalloc state, also share the interned dict with the main interpreter.
N
Neil Schemenauer committed
5dd07ebc0c27e2fffdfd041401c8cc7f0cda0dfc
Parent: 69fd1f2
Committed by GitHub <noreply@github.com>
on 9/27/2024, 1:04:03 AM