diff options
author | Sam Gross <colesbury@gmail.com> | 2025-02-12 14:34:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-12 14:34:40 (GMT) |
commit | 57f45ee2d8ee23c2a1d1daba4095a5a044169419 (patch) | |
tree | fb3e9220bc62c3812220d0ca7b758dce11d463eb /Python/optimizer.c | |
parent | 3cf68cdd3e1809df4e426c61f6990de63747ec6f (diff) | |
download | cpython-57f45ee2d8ee23c2a1d1daba4095a5a044169419.zip cpython-57f45ee2d8ee23c2a1d1daba4095a5a044169419.tar.gz cpython-57f45ee2d8ee23c2a1d1daba4095a5a044169419.tar.bz2 |
gh-128759: Fix accesses to `tp_version_tag`. (GH-129750)
We should use a relaxed atomic load in the free threading build in
`PyType_Modified()` because that's called without the type lock held.
It's not necessary to use atomics in `type_modified_unlocked()`.
We should also use `FT_ATOMIC_STORE_UINT_RELAXED()` instead of the
`UINT32` variant because `tp_version_tag` is declared as `unsigned int`.
Diffstat (limited to 'Python/optimizer.c')
0 files changed, 0 insertions, 0 deletions