[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

Eric Snow report at bugs.python.org
Wed Dec 15 14:52:59 EST 2021


Eric Snow <ericsnowcurrently at gmail.com> added the comment:

FWIW, it makes sense to me for the interned strings to be per-interpreter eventually.
Otherwise strings interned by an interpreter would persist after that interpreter
is finalized, potentially leaking memory until the runtime is finalized.

However, if we end up with immortal objects then I think all the strings created
through _Py_IDENTIFIER() should be global (_PyRuntimeState).  Otherwise they must
be per-interpreter (if we have a per-interpreter GIL).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46006>
_______________________________________


More information about the Python-bugs-list mailing list