Skip to content

Commit

Permalink
pythongh-117657: Fix missing atomic in dict_resize (pythonGH-119312)
Browse files Browse the repository at this point in the history
Fix missing atomic in dict_resize
(cherry picked from commit 2b3fb76)

Co-authored-by: Dino Viehland <dinoviehland@meta.com>
  • Loading branch information
DinoV authored and miss-islington committed May 22, 2024
1 parent a463cd8 commit 95b016a
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 95b016a

Please sign in to comment.