SIGN IN SIGN UP

gh-118362: Fix thread safety around lookups from the type cache in the face of concurrent mutators (#118454)

Add _PyType_LookupRef and use incref before setting attribute on type
Makes setting an attribute on a class and signaling type modified atomic
Avoid adding re-entrancy exposing the type cache in an inconsistent state by decrefing after type is updated
D
Dino Viehland committed
5a1618a2c8c108b8c73aa9459b63f0dbd66b60f6
Parent: e6b213e
Committed by GitHub <noreply@github.com> on 5/6/2024, 5:50:35 PM