gh-127020: Make `PyCode_GetCode` thread-safe for free threading (#127043)
Some fields in PyCodeObject are lazily initialized. Use atomics and critical sections to make their initializations and accesses thread-safe.
S
Sam Gross committed
3926842117feffe5d2c9727e1899bea5ae2adb28
Parent: dc7a2b6
Committed by GitHub <noreply@github.com>
on 11/21/2024, 4:00:50 PM