Skip to content

Commit

Permalink
gh-117657: Fix missing atomic in dict_resize (#119312)
Browse files Browse the repository at this point in the history
Fix missing atomic in dict_resize
  • Loading branch information
DinoV authored May 22, 2024
1 parent ef17252 commit 2b3fb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2b3fb76

Please sign in to comment.