summaryrefslogtreecommitdiffstats
path: root/Python/instruction_sequence.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2025-02-26 05:24:20 (GMT)
committerGitHub <noreply@github.com>2025-02-26 05:24:20 (GMT)
commitbaae9cb159e240ee9474ce7c02f88c233390777a (patch)
tree032c29ce40b8c393c2b4d5a42230a5dcfc1925af /Python/instruction_sequence.c
parent0ef4ffeefd1737c18dc9326133c7894d58108c2e (diff)
downloadcpython-baae9cb159e240ee9474ce7c02f88c233390777a.zip
cpython-baae9cb159e240ee9474ce7c02f88c233390777a.tar.gz
cpython-baae9cb159e240ee9474ce7c02f88c233390777a.tar.bz2
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.
Diffstat (limited to 'Python/instruction_sequence.c')
0 files changed, 0 insertions, 0 deletions