SIGN IN SIGN UP

gh-117657: Use an atomic store to set type flags. (gh-127588)

The `PyType_HasFeature()` function reads the flags with a relaxed atomic
load and without holding the type lock.  To avoid data races, use atomic
stores if `PyType_Ready()` has already been called.
N
Neil Schemenauer committed
baae9cb159e240ee9474ce7c02f88c233390777a
Parent: 0ef4ffe
Committed by GitHub <noreply@github.com> on 2/26/2025, 5:24:20 AM