Skip to content

Commit

Permalink
[3.13] gh-117657: Fix missing atomic in dict_resize (GH-119312) (#119417
Browse files Browse the repository at this point in the history
)

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

Fix missing atomic in dict_resize
(cherry picked from commit 2b3fb76)

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

Please sign in to comment.