summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c
index d584414..4c30257 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -1717,7 +1717,11 @@ _PyObject_GenericGetAttrWithDict(PyObject *obj, PyObject *name,
else {
PyObject **dictptr = _PyObject_ComputedDictPointer(obj);
if (dictptr) {
+#ifdef Py_GIL_DISABLED
+ dict = _Py_atomic_load_ptr_acquire(dictptr);
+#else
dict = *dictptr;
+#endif
}
}
}