Skip to content

Commit 0cc9f47

Browse files
committed
Remove atomic assign in list
1 parent 9298103 commit 0cc9f47

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Include/cpython/listobject.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ PyList_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) {
4444
PyListObject *list = _PyList_CAST(op);
4545
assert(0 <= index);
4646
assert(index < list->allocated);
47-
#ifdef Py_GIL_DISABLED
48-
_Py_atomic_store_ptr_relaxed(&list->ob_item[index], value);
49-
#else
5047
list->ob_item[index] = value;
51-
#endif
5248
}
5349
#define PyList_SET_ITEM(op, index, value) \
5450
PyList_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))

0 commit comments

Comments
 (0)