mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-128759: fix data race in type_modified_unlocked
(#128764)
This commit is contained in:
parent
d0ecbdd838
commit
6e1e780540
1 changed files with 1 additions and 1 deletions
|
@ -1038,7 +1038,7 @@ type_modified_unlocked(PyTypeObject *type)
|
|||
We don't assign new version tags eagerly, but only as
|
||||
needed.
|
||||
*/
|
||||
if (type->tp_version_tag == 0) {
|
||||
if (FT_ATOMIC_LOAD_UINT_RELAXED(type->tp_version_tag) == 0) {
|
||||
return;
|
||||
}
|
||||
// Cannot modify static builtin types.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue