bpo-42745: Make the type cache per-interpreter by vstinner · Pull Request #23947 · python/cpython
Make the type attribute lookup cache per-interpreter. Add _PyType_InitCache() function, called by PyInterpreterState_New(). Remove MCACHE macro: the cache is no longer disabled if the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined. Continue to share next_version_tag between interpreters, since static types are still shared by interpreters.
adorilson pushed a commit to adorilson/cpython that referenced this pull request
Make the type attribute lookup cache per-interpreter. Add private _PyType_InitCache() function, called by PyInterpreterState_New(). Continue to share next_version_tag between interpreters, since static types are still shared by interpreters. Remove MCACHE macro: the cache is no longer disabled if the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is defined.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters