Lines Matching refs:new_copy
2487 vm_object_t new_copy = VM_OBJECT_NULL;
2627 if (new_copy != VM_OBJECT_NULL) {
2628 vm_object_unlock(new_copy);
2629 vm_object_deallocate(new_copy);
2648 if (new_copy != VM_OBJECT_NULL) {
2649 vm_object_unlock(new_copy);
2650 vm_object_deallocate(new_copy);
2665 if (new_copy == VM_OBJECT_NULL) {
2668 new_copy = vm_object_allocate(copy_size);
2670 vm_object_lock(new_copy);
2675 new_copy->size = copy_size;
2687 } else if (new_copy == VM_OBJECT_NULL) {
2689 new_copy = vm_object_allocate(copy_size);
2691 vm_object_lock(new_copy);
2716 vm_object_unlock(new_copy);
2717 vm_object_deallocate(new_copy);
2737 old_copy->shadow = new_copy;
2738 vm_object_lock_assert_exclusive(new_copy);
2739 assert(new_copy->ref_count > 0);
2740 new_copy->ref_count++; /* for old_copy->shadow ref. */
2744 VM_OBJ_RES_INCR(new_copy);
2755 vm_object_lock_assert_exclusive(new_copy);
2756 new_copy->shadow = src_object;
2757 new_copy->shadow_offset = 0;
2758 new_copy->shadowed = TRUE; /* caller must set needs_copy */
2762 src_object->copy = new_copy;
2764 vm_object_unlock(new_copy);
2768 (integer_t)new_copy, (integer_t)src_object, 0, 0, 0);
2770 return new_copy;