Lines Matching refs:assert
79 #include <kern/assert.h>
743 assert(object->ref_count > 0);
782 assert(object->ref_count > 0);
842 assert(! object->can_persist);
896 assert(object->shadow == VM_OBJECT_NULL);
975 assert(! retry_cache_trim);
1036 assert(object->pager_initialized);
1037 assert(object->ref_count == 0);
1261 assert(object->ref_count > 0);
1274 assert(object->ref_count > 0);
1378 assert(object->paging_in_progress == 0);
1397 assert(object->res_count == 0);
1400 assert (object->ref_count == 0);
1405 assert(queue);
1411 assert(queue->debug_count_objects>=0);
1421 assert(object->shadow != VM_OBJECT_NULL);
1446 assert(p->pageq.next == NULL && p->pageq.prev == NULL);
1464 assert(object->paging_in_progress == 0);
1465 assert(object->ref_count == 0);
1529 assert(object->terminating);
1530 assert(!object->alive);
1797 assert(!m->laundry);
1814 assert(!m->laundry);
1815 assert(m->object != kernel_object);
1816 assert(m->pageq.next == NULL &&
1835 assert(m->phys_page == vm_page_fictitious_addr);
1915 assert(phys_start <= phys_end);
1916 assert(phys_end <= object->shadow_offset + object->size);
1928 assert(object->internal);
2100 assert(size == trunc_page_64(size)); /* Will the loop terminate? */
2425 assert(src_object->copy != VM_OBJECT_NULL);
2684 assert((old_copy->shadow == src_object) &&
2735 assert(src_object->ref_count > 0);
2739 assert(new_copy->ref_count > 0);
2795 assert(src_object != VM_OBJECT_NULL);
2915 assert(source->copy_strategy == MEMORY_OBJECT_COPY_SYMMETRIC);
3085 assert(new_entry == VM_OBJECT_HASH_ENTRY_NULL);
3117 assert(object != VM_OBJECT_NULL);
3129 assert(!internal || object->internal);
3131 assert(!object->named);
3151 assert(object->ref_count > 0);
3180 assert (control != MEMORY_OBJECT_CONTROL_NULL);
3183 assert(object != kernel_object);
3275 assert(object != kernel_object);
3315 assert(object->size == size);
3333 assert(object->temporary);
3450 assert(!p->busy || p->absent);
3503 assert(! pp->absent);
3516 assert((!object->pager_created && (object->pager == MEMORY_OBJECT_NULL))
3520 assert(!object->pager_created && object->pager == MEMORY_OBJECT_NULL);
3534 assert(!object->paging_in_progress);
3537 assert(entry != VM_OBJECT_HASH_ENTRY_NULL);
3566 assert(object->existence_map == VM_EXTERNAL_NULL);
3585 assert(!object->phys_contiguous);
3586 assert(!backing_object->phys_contiguous);
3594 assert((object->shadow == VM_OBJECT_NULL) ||
3605 assert((backing_object->ref_count == 1) &&
3654 assert(!object->phys_contiguous);
3655 assert(!backing_object->phys_contiguous);
3703 assert(backing_object->ref_count > 0);
4178 assert(!p->cleaning && !p->pageout);
4191 assert(!p->cleaning && !p->pageout);
4308 assert(prev_object->existence_map == VM_EXTERNAL_NULL);
4838 assert(object->pager_initialized);
4839 assert(object->ref_count == 0);
5025 assert(object->alive);
5027 assert(object->named);
5028 assert(object->ref_count > 0);
5036 assert(!object->can_persist);
5090 assert(object->ref_count > 0);
5099 assert(0);
5181 assert(object->purgable != VM_PURGABLE_NONVOLATILE);
5184 assert(object->copy == VM_OBJECT_NULL);
5185 assert(object->copy_strategy == MEMORY_OBJECT_COPY_NONE);
5230 assert(vm_page_purgeable_count > 0);
5252 assert(!p->laundry);
5253 assert(p->object != kernel_object);
5281 assert(vm_page_purgeable_count > 0);
5285 assert(p->pageq.next == NULL &&
5406 assert(object->copy == VM_OBJECT_NULL);
5407 assert(object->copy_strategy == MEMORY_OBJECT_COPY_NONE);
5426 assert(vm_page_purgeable_count >=
5430 assert(object->objq.next != NULL && object->objq.prev != NULL); /* object should be on a queue */
5432 assert(queue);
5435 assert(queue->debug_count_objects>=0);
5475 assert(object->objq.next == NULL && object->objq.prev == NULL);
5486 assert(object->objq.next != NULL && object->objq.prev != NULL); /* object should be on a queue */
5489 assert(old_queue);
5500 assert(result==KERN_SUCCESS); /* this should never fail since we just freed a token */
5505 assert(queue->debug_count_objects>=0);
5513 assert(old_state==VM_PURGABLE_NONVOLATILE || old_state==VM_PURGABLE_VOLATILE);
5515 assert(object->objq.next != NULL && object->objq.prev != NULL); /* object should be on a queue */
5517 assert(old_queue);
5563 assert(object->res_count > 0);
5565 assert(object->ref_count >= object->res_count);
5574 assert(object->res_count > 0);
5609 assert(object->ref_count >= object->res_count);
5617 assert(orig_object->ref_count >= orig_object->res_count);
5637 assert(object->ref_count > 0);
5796 assert(queue_empty(&object2->memq));
5807 assert(queue_empty(&object1->memq));
5819 assert(queue_empty(&object1->memq));
5825 assert(queue_empty(&object2->memq));
5833 assert(queue_empty(&tmp_object->memq));
5844 assert(object1->size == object2->size);
5852 assert(!object1->copy);
5853 assert(!object2->copy);
5855 assert(!object1->shadow);
5856 assert(!object2->shadow);
5872 assert(object1->paging_in_progress);
5873 assert(object2->paging_in_progress);
5885 assert(object1->alive);
5886 assert(object2->alive);
5888 assert(object1->purgable == VM_PURGABLE_DENY);
5889 assert(object2->purgable == VM_PURGABLE_DENY);
5895 assert(!object1->terminating);
5896 assert(!object2->terminating);
5902 assert(object1->cached_list.prev == NULL);
5903 assert(object1->cached_list.next == NULL);
5904 assert(object2->cached_list.prev == NULL);
5905 assert(object2->cached_list.next == NULL);
5907 assert(queue_empty(&object1->msr_q));
5908 assert(queue_empty(&object2->msr_q));
6011 assert( !(*length & PAGE_MASK));
6012 assert( !(*start & PAGE_MASK_64));
6302 /* The protection granted with this assert will */
6307 /* if such violations occur we will assert sooner */
6309 assert(dst_page->busy || (ops & UPL_POP_BUSY));
6318 assert(dst_page->busy);
6356 assert(!phys_entry);
6367 assert(dst_page->busy);
6368 assert(!dst_page->encrypted);