Lines Matching refs:object2
5678 vm_object_t object2,
5692 if (object1 == object2 ||
5694 object2 == VM_OBJECT_NULL) {
5730 vm_object_lock(object2);
5732 if (! object2->alive || object2->terminating ||
5733 object2->copy || object2->shadow || object2->shadowed ||
5734 object2->purgable != VM_PURGABLE_DENY) {
5738 vm_object_paging_begin(object2);
5740 vm_object_unlock(object2);
5745 * while we copy object2 to object1.
5757 if (object1 < object2) {
5759 vm_object_lock(object2);
5761 vm_object_lock(object2);
5767 if (object1->size != object2->size ||
5789 * from object2 to object1. No need to go through
5792 while (!queue_empty(&object2->memq)) {
5793 page = (vm_page_t) queue_first(&object2->memq);
5796 assert(queue_empty(&object2->memq));
5797 } else if (object2->phys_contiguous || queue_empty(&object2->memq)) {
5799 * No pages in object2, just transfer pages
5800 * from object1 to object2. No need to go through
5805 vm_page_rename(page, object2, page->offset, FALSE);
5820 /* transfer object2's pages to object1 */
5821 while (!queue_empty(&object2->memq)) {
5822 page = (vm_page_t) queue_first(&object2->memq);
5825 assert(queue_empty(&object2->memq));
5831 vm_page_insert(page, object2, page->offset);
5839 object1->field = object2->field; \
5840 object2->field = tmp_object->field; \
5844 assert(object1->size == object2->size);
5853 assert(!object2->copy);
5856 assert(!object2->shadow);
5866 if (object2->pager_control != MEMORY_OBJECT_CONTROL_NULL) {
5867 memory_object_control_collapse(object2->pager_control,
5868 object2);
5873 assert(object2->paging_in_progress);
5886 assert(object2->alive);
5889 assert(object2->purgable == VM_PURGABLE_DENY);
5896 assert(!object2->terminating);
5904 assert(object2->cached_list.prev == NULL);
5905 assert(object2->cached_list.next == NULL);
5908 assert(queue_empty(&object2->msr_q));
5952 vm_object_unlock(object2);
5962 vm_object_lock(object2);
5963 vm_object_paging_end(object2);
5964 vm_object_unlock(object2);