[3.13] gh-127020: Make `PyCode_GetCode` thread-safe for free threading (GH-127043) (GH-127107)
Some fields in PyCodeObject are lazily initialized. Use atomics and critical sections to make their initializations and accesses thread-safe. (cherry picked from commit 3926842117feffe5d2c9727e1899bea5ae2adb28) Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
c74331413ea847ff1099f584e5fecbd7f5036f7d
Parent: c09366b
Committed by GitHub <noreply@github.com>
on 11/21/2024, 4:27:36 PM