Lines Matching refs:_allocation_size
20 static vm_size_t _allocation_size = 0; variable
51 _allocation_size = sz; in set_allocation_size()
113 int ret = mach_vm_allocate(mach_task_self(), &dst, _allocation_size, vm_flags); in assert_allocate()
138 void *ret = mmap(addr, _allocation_size, VM_PROT_READ | VM_PROT_WRITE, in assert_mmap()
151 _allocation_size, vm_flags), "vm_allocate"); in assert_allocate_eq()
223 assert_allocate_in_range(HEAP, range.min_address - _allocation_size, RANGE_HEAP_FLAGS);
242 assert_allocate_eq(range.min_address - _allocation_size, VM_FLAGS_FIXED | VM_MEMORY_RANGE_HEAP);
267 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)_allocation_size), NULL);
289 mach_vm_address_t target = range.min_address - _allocation_size;
337 int ret = mach_vm_map(mach_task_self(), &addr, _allocation_size,
355 mach_vm_address_t target = addr + _allocation_size;
357 int ret = mach_vm_remap(mach_task_self(), &target, _allocation_size,
374 mach_vm_address_t target = addr + _allocation_size;
376 int ret = mach_vm_remap(mach_task_self(), &target, _allocation_size,
396 int ret = mach_vm_remap(mach_task_self(), &target, _allocation_size,