mirror of https://github.com/python/cpython
gh-117657: Fix missing atomic in dict_resize (#119312)
Fix missing atomic in dict_resize
This commit is contained in:
parent
ef172521a9
commit
2b3fb767be
|
@ -2003,7 +2003,7 @@ dictresize(PyInterpreterState *interp, PyDictObject *mp,
|
||||||
if (oldvalues->embedded) {
|
if (oldvalues->embedded) {
|
||||||
assert(oldvalues->embedded == 1);
|
assert(oldvalues->embedded == 1);
|
||||||
assert(oldvalues->valid == 1);
|
assert(oldvalues->valid == 1);
|
||||||
oldvalues->valid = 0;
|
FT_ATOMIC_STORE_UINT8(oldvalues->valid, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
free_values(oldvalues, IS_DICT_SHARED(mp));
|
free_values(oldvalues, IS_DICT_SHARED(mp));
|
||||||
|
|
Loading…
Reference in New Issue