Skip to content

Commit 1535db6

Browse files
committed
Finally use func declaration in internal header
1 parent 0daec9c commit 1535db6

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎Objects/listobject.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,13 @@ end:;
499499
return ret;
500500
}
501501

502-
static void ptr_wise_atomic_memmove(PyListObject *a, PyObject **dest,
503-
PyObject **src, Py_ssize_t n);
504-
505502
static inline void
506503
list_shift_items_right_lock_held(PyListObject *self, Py_ssize_t first,
507504
Py_ssize_t last)
508505
{
509506
#ifdef Py_GIL_DISABLED
510-
ptr_wise_atomic_memmove(self, &self->ob_item[first + 1],
507+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
508+
_PyObject_ptr_wise_atomic_memmove(self, &self->ob_item[first + 1],
511509
&self->ob_item[first], last - first);
512510
#else
513511
PyObject **items = self->ob_item;
@@ -522,7 +520,8 @@ list_shift_items_left_lock_held(PyListObject *self, Py_ssize_t first,
522520
Py_ssize_t last)
523521
{
524522
#ifdef Py_GIL_DISABLED
525-
ptr_wise_atomic_memmove(self, &self->ob_item[first],
523+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
524+
_PyObject_ptr_wise_atomic_memmove(self, &self->ob_item[first],
526525
&self->ob_item[first + 1], last - first);
527526
#else
528527
PyObject **items = self->ob_item;

0 commit comments

Comments
 (0)