bpo-42745: Make the type cache per-interpreter (GH-23947)
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.
V
Victor Stinner committed
41010184880151d6ae02a226dbacc796e5c90d11
Parent: 77fde8d
Committed by GitHub <noreply@github.com>
on 12/26/2020, 12:45:43 AM