gh-113743: Make the MRO cache thread-safe in free-threaded builds by DinoV · Pull Request #113930 · python/cpython
bot
mentioned this pull request
DinoV
marked this pull request as ready for review
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request
Apr 17, 2024…ds (python#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.
DinoV
deleted the
nogil_type_mro
branch
mpage
mentioned this pull request
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull request
Jan 22, 2025…ds (python#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.
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