8000 gh-128759: fix data race in `type_modified_unlocked` (#128764) · python/cpython@6e1e780 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e1e780

Browse files
authored
gh-128759: fix data race in type_modified_unlocked (#128764)
1 parent d0ecbdd commit 6e1e780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ type_modified_unlocked(PyTypeObject *type)
10381038
We don't assign new version tags eagerly, but only as
10391039
needed.
10401040
*/
1041-
if (type->tp_version_tag == 0) {
1041+
if (FT_ATOMIC_LOAD_UINT_RELAXED(type->tp_version_tag) == 0) {
10421042
return;
10431043
}
10441044
// Cannot modify static builtin types.

0 commit comments

Comments
 (0)
0