Skip to content

Commit 581869e

Browse files
committed
Use atomic load for valid bit
1 parent 85dab0d commit 581869e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ specialize_dict_access(
10421042
}
10431043
int result;
10441044
if (type->tp_flags & Py_TPFLAGS_INLINE_VALUES &&
1045-
_PyObject_InlineValues(owner)->valid &&
1045+
FT_ATOMIC_LOAD_UINT8(_PyObject_InlineValues(owner)->valid) &&
10461046
!(base_op == STORE_ATTR && _PyObject_GetManagedDict(owner) != NULL))
10471047
{
10481048
Py_BEGIN_CRITICAL_SECTION(owner);

0 commit comments

Comments
 (0)