gh-113743: Make the MRO cache thread-safe in free-threaded builds (#113930)
Makes _PyType_Lookup thread safe, including:
Thread safety of the underlying cache.
Make mutation of mro and type members thread safe
Also _PyType_GetMRO and _PyType_GetBases are currently returning borrowed references which aren't safe. D
Dino Viehland committed
ae460d450ab854ca66d509ef6971cfe1b6312405
Parent: e74fa29
Committed by GitHub <[email protected]>
on 2/15/2024, 6:54:57 PM