summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-22 21:42:47 (GMT)
committerGitHub <noreply@github.com>2024-05-22 21:42:47 (GMT)
commitcd35e9d85a8976facebda41692d38a82a4e168c9 (patch)
tree0eccf50adcc75bc630a2bba85208cc0de703834d
parenta6ed7425d8f592cd1146ad8dad1c321d79b46c13 (diff)
downloadcpython-cd35e9d85a8976facebda41692d38a82a4e168c9.zip
cpython-cd35e9d85a8976facebda41692d38a82a4e168c9.tar.gz
cpython-cd35e9d85a8976facebda41692d38a82a4e168c9.tar.bz2
[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 <dinoviehland@meta.com>
-rw-r--r--Objects/dictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 985a326..6e1c3b9 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));