From 2b3fb767bea1f96c9e0523f6cc341b40f0fa1ca1 Mon Sep 17 00:00:00 2001 From: Dino Viehland Date: Wed, 22 May 2024 13:38:56 -0400 Subject: [PATCH] gh-117657: Fix missing atomic in dict_resize (#119312) Fix missing atomic in dict_resize --- Objects/dictobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 985a326a176..6e1c3b93fd3 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));