https://github.com/python/cpython/commit/cd35e9d85a8976facebda41692d38a82a4e168c9 commit: cd35e9d85a8976facebda41692d38a82a4e168c9 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: DinoV <[email protected]> date: 2024-05-22T14:42:47-07:00 summary:
[3.13] gh-117657: Fix missing atomic in dict_resize (GH-119312) (#119417) gh-117657: Fix missing atomic in dict_resize (GH-119312) Fix missing atomic in dict_resize (cherry picked from commit 2b3fb767bea1f96c9e0523f6cc341b40f0fa1ca1) Co-authored-by: Dino Viehland <[email protected]> files: M Objects/dictobject.c diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 985a326a176c94..6e1c3b93fd391b 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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)); _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
