Skip to content

Commit

Permalink
Fix missing atomic in dict_resize
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoV committed May 21, 2024
1 parent 9257731 commit 903c21a
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 903c21a

Please sign in to comment.