gh-113743: Make the MRO cache thread-safe in free-threaded builds by DinoV · Pull Request #113930 · python/cpython

@bedevere-app bot mentioned this pull request

Jan 11, 2024

@DinoV DinoV marked this pull request as ready for review

January 12, 2024 18:58

colesbury

colesbury

@DinoV

@DinoV

@DinoV

@DinoV

Use atomic storage instead of exchange
Use relaxed load when starting sequence lock for write
Fix some formatting

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 DinoV deleted the nogil_type_mro branch

May 31, 2024 18:23

@mpage mpage mentioned this pull request

Dec 20, 2024

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.