Skip to content

Commit 2eeb71a

Browse files
committed
Make access to dict->ma_used relaxed.
1 parent dc2c785 commit 2eeb71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4972,7 +4972,7 @@ dictiter_new(PyDictObject *dict, PyTypeObject *itertype)
49724972
return NULL;
49734973
}
49744974
di->di_dict = (PyDictObject*)Py_NewRef(dict);
4975-
used = FT_ATOMIC_LOAD_SSIZE(dict->ma_used);
4975+
used = FT_ATOMIC_LOAD_SSIZE_RELAXED(dict->ma_used);
49764976
di->di_used = used;
49774977
di->len = used;
49784978
if (itertype == &PyDictRevIterKey_Type ||

0 commit comments

Comments
 (0)