As part of the subinterpreter efforts, all the runtime state which is global should be under single global variable rather than static variables in random C source files. Since interned dict must be global and not per-interpreter it should be moved to _PyRuntime. We would likely add a lock around accessing and make it immortal for interpreter GIL but that's for a different PR.
The text was updated successfully, but these errors were encountered:
* move _PyRuntime.global_objects.interned to _PyRuntime.cached_objects.interned_strings (and use _Py_CACHED_OBJECT())
* rename _PyRuntime.global_objects to _PyRuntime.static_objects
(This also relates to gh-96075.)
#90111
kumaraditya303 commentedAug 18, 2022
As part of the subinterpreter efforts, all the runtime state which is global should be under single global variable rather than static variables in random C source files. Since interned dict must be global and not per-interpreter it should be moved to
_PyRuntime
. We would likely add a lock around accessing and make it immortal for interpreter GIL but that's for a different PR.The text was updated successfully, but these errors were encountered: