SIGN IN SIGN UP

gh-128212: Fix race in `_PyUnicode_CheckConsistency` (GH-128367)

There was a data race on the utf8 field between `PyUnicode_SET_UTF8` and
`_PyUnicode_CheckConsistency`. Use the `_PyUnicode_UTF8()` accessor,
which uses an atomic load internally, to avoid the data race.
S
Sam Gross committed
8eebe4e6d02bb4ad3f1ca6c52624186903dce893
Parent: c9356fe
Committed by GitHub <noreply@github.com> on 1/2/2025, 7:02:54 PM