We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d416ac6 commit 45593e8Copy full SHA for 45593e8
Objects/listobject.c
@@ -79,7 +79,8 @@ ensure_shared_on_resize(PyListObject *self)
79
// We can't use _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED here because
80
// the `CALL_LIST_APPEND` bytecode handler may lock the list without
81
// a critical section.
82
- assert(_PyObject_IsUniquelyReferenced(self) || PyMutex_IsLocked(&_PyObject_CAST(self)->ob_mutex));
+ assert(_PyObject_IsUniquelyReferenced((PyObject *)self) ||
83
+ PyMutex_IsLocked(&_PyObject_CAST(self)->ob_mutex));
84
85
// Ensure that the list array is freed using QSBR if we are not the
86
// owning thread.
0 commit comments