Home
last modified time | relevance | path

Searched refs:FIBERS_ASSERT (Results 1 – 6 of 6) sorted by relevance

/xnu-12377.61.12/tests/unit/mocks/fibers/
H A Drwlock.c64FIBERS_ASSERT(fibers_current->may_yield_disabled == 0, "fibers_rwlock_rdlock_helper: waiting on rw… in fibers_rwlock_rdlock_helper()
75FIBERS_ASSERT(rwlock->writer_active == NULL, "fibers_rwlock_rdlock_helper: woken up while writer %… in fibers_rwlock_rdlock_helper()
118FIBERS_ASSERT(rwlock->writer_active != fibers_current, "fibers_rwlock_wrlock_helper: recursive wri… in fibers_rwlock_wrlock_helper()
122FIBERS_ASSERT(fibers_current->may_yield_disabled == 0, "fibers_rwlock_wrlock_helper: waiting on rw… in fibers_rwlock_wrlock_helper()
133FIBERS_ASSERT(rwlock->writer_active == fibers_current, "fibers_rwlock_wrlock_helper: woken up but … in fibers_rwlock_wrlock_helper()
134FIBERS_ASSERT(rwlock->reader_count == 0, "fibers_rwlock_wrlock_helper: woken up as writer but %u r… in fibers_rwlock_wrlock_helper()
173FIBERS_ASSERT(rwlock->writer_active == NULL, "fibers_rwlock_rdunlock_helper: trying to read-unlock… in fibers_rwlock_rdunlock_helper()
174FIBERS_ASSERT(rwlock->reader_count > 0, "fibers_rwlock_rdunlock_helper: trying to read-unlock with… in fibers_rwlock_rdunlock_helper()
186FIBERS_ASSERT(new_writer->state == FIBER_WAIT, "fibers_rwlock_rdunlock_helper: woken writer %d is … in fibers_rwlock_rdunlock_helper()
203FIBERS_ASSERT(rwlock->writer_active == fibers_current, "fibers_rwlock_wrunlock_helper: trying to w… in fibers_rwlock_wrunlock_helper()
[all …]
H A Dmutex.c58FIBERS_ASSERT(mtx->holder != fibers_current, "fibers_mutex_lock_helper: tried to lock mutex alread… in fibers_mutex_lock_helper()
63FIBERS_ASSERT(fibers_current->may_yield_disabled == 0, "fibers_mutex_lock_helper: waiting on a mut… in fibers_mutex_lock_helper()
74FIBERS_ASSERT(mtx->holder == fibers_current, "fibers_mutex_lock_helper: waken up without being the… in fibers_mutex_lock_helper()
90FIBERS_ASSERT(mtx->holder == fibers_current, "fibers_mutex_unlock_helper: tried to unlock mutex he… in fibers_mutex_unlock_helper()
105FIBERS_ASSERT(new_holder->state == FIBER_WAIT, "fibers_mutex_unlock_helper: new holder %d is not F… in fibers_mutex_unlock_helper()
164FIBERS_ASSERT(mtx->holder == NULL, "fibers_mutex_destroy: tried to destroy mutex held by %d", mtx-… in fibers_mutex_destroy()
165FIBERS_ASSERT(mtx->wait_queue.count == 0, "fibers_mutex_destroy: tried to destroy mutex with non e… in fibers_mutex_destroy()
H A Dfibers.c167 FIBERS_ASSERT(fibers_last_forged_id != 0, "fibers_create: new fiber id integer overflow"); in fibers_create()
172 FIBERS_ASSERT(fiber->stack_bottom, "fibers_create: stack malloc failed"); in fibers_create()
183 FIBERS_ASSERT(getcontext(&child_uc) == 0, "fibers_create: getcontext"); in fibers_create()
207 FIBERS_ASSERT(swapcontext(&tmp_uc, &child_uc) == 0, "fibers_create: swapcontext"); in fibers_create()
247FIBERS_ASSERT(fibers_current->may_yield_disabled == 0, "fibers_exit: fibers_current->may_yield_dis… in fibers_exit()
258 FIBERS_ASSERT(false, "fibers_exit: unreachable"); in fibers_exit()
264FIBERS_ASSERT(fibers_current->may_yield_disabled == 0, "fibers_join: fibers_current->may_yield_dis… in fibers_join()
270FIBERS_ASSERT(target->joiner == NULL, "fibers_join: %d already joined by %d", target->id, target->… in fibers_join()
280 FIBERS_ASSERT(target->state == FIBER_DEAD, "fibers_join: not dead"); in fibers_join()
327 FIBERS_ASSERT(fibers_queue_remove(&fibers_run_queue, target), "fibers_switch_to"); in fibers_switch_to()
[all …]
H A Dcondition.c52FIBERS_ASSERT(target->state == FIBER_WAIT, "fibers_condition_wakeup_some: waking up %d that is not… in fibers_condition_wakeup_some()
74FIBERS_ASSERT(fibers_current->may_yield_disabled == 0, "fibers_condition_wait: waiting on a condit… in fibers_condition_wait()
85FIBERS_ASSERT(cond->wait_queue.count == 0, "fibers_mutex_destroy: tried to destroy condition with … in fibers_condition_destroy()
105 FIBERS_ASSERT(false, "fibers_condition_identify: unreachable"); in fibers_condition_identify()
122FIBERS_ASSERT(target->state == FIBER_WAIT, "fibers_condition_wakeup_identified: waking up %d that … in fibers_condition_wakeup_identified()
H A Dfibers.h114 #define FIBERS_ASSERT(expr, msg, ...) do { … macro
198 FIBERS_ASSERT(fiber->next == NULL, "fibers_queue_push: already on another queue"); in fibers_queue_push()
207 FIBERS_ASSERT(queue->count > 0, "fibers_queue_pop: empty queue"); in fibers_queue_pop()
208 FIBERS_ASSERT(queue->count > index, "fibers_queue_pop: invalid index"); in fibers_queue_pop()
221 FIBERS_ASSERT(false, "fibers_queue_pop: unreachable"); in fibers_queue_pop()
299 FIBERS_ASSERT(fiber->next_existing == NULL, "fibers_existing_push: already on existing queue"); in fibers_existing_push()
H A Dchecker.c60 FIBERS_ASSERT(entry != NULL, "watchpoint_entry_init: null entry"); in watchpoint_entry_init()
61FIBERS_ASSERT(size <= 16, "watchpoint_entry_init: invalid size"); // no access is bigger than size… in watchpoint_entry_init()
334 FIBERS_ASSERT(removed_entry.address == address, "race? internal error"); in post_check_and_remove_watchpoint()
335 FIBERS_ASSERT(removed_entry.access_type == access_type, "race? internal error"); in post_check_and_remove_watchpoint()
336 FIBERS_ASSERT(removed_entry.size == size, "race? internal error"); in post_check_and_remove_watchpoint()
337 FIBERS_ASSERT(removed_entry.fiber_id == fibers_current->id, "race? internal error"); in post_check_and_remove_watchpoint()