Skip to content

Commit db83abc

Browse files
committed
Document conflicting read
1 parent 0bdc8b2 commit db83abc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Objects/dictobject.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7803,6 +7803,8 @@ clear_inline_values(PyDictValues *values)
78037803
FT_ATOMIC_STORE_UINT8(values->valid, 0);
78047804
for (Py_ssize_t i = 0; i < values->capacity; i++) {
78057805
PyObject *value = values->values[i];
7806+
// The attribute read fast-path may read these without holding the
7807+
// per-object lock.
78067808
FT_ATOMIC_STORE_PTR_RELEASE(values->values[i], NULL);
78077809
Py_XDECREF(value);
78087810
}

0 commit comments

Comments
 (0)