gh-117657: Fix missing atomic in dict_resize (#119312)

Fix missing atomic in dict_resize
This commit is contained in:
Dino Viehland 2024-05-22 13:38:56 -04:00 committed by GitHub
parent ef172521a9
commit 2b3fb767be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2003,7 +2003,7 @@ dictresize(PyInterpreterState *interp, PyDictObject *mp,
if (oldvalues->embedded) {
assert(oldvalues->embedded == 1);
assert(oldvalues->valid == 1);
oldvalues->valid = 0;
FT_ATOMIC_STORE_UINT8(oldvalues->valid, 0);
}
else {
free_values(oldvalues, IS_DICT_SHARED(mp));