< prev index next >

src/share/vm/runtime/os.cpp

Print this page

        

*** 1606,1624 **** bool os::create_stack_guard_pages(char* addr, size_t bytes) { return os::pd_create_stack_guard_pages(addr, bytes); } ! char* os::reserve_memory(size_t bytes, char* addr, size_t alignment_hint) { ! char* result = pd_reserve_memory(bytes, addr, alignment_hint); if (result != NULL) { MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC); } return result; } char* os::reserve_memory(size_t bytes, char* addr, size_t alignment_hint, MEMFLAGS flags) { char* result = pd_reserve_memory(bytes, addr, alignment_hint); if (result != NULL) { MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC); --- 1606,1628 ---- bool os::create_stack_guard_pages(char* addr, size_t bytes) { return os::pd_create_stack_guard_pages(addr, bytes); } ! char* os::reserve_memory(size_t bytes, char* addr, size_t alignment_hint, int file_desc) { ! char* result = pd_reserve_memory(bytes, addr, alignment_hint, file_desc); if (result != NULL) { MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC); } return result; } + char* os::reserve_memory(size_t bytes, int file_desc) { + return reserve_memory(bytes, 0, 0, file_desc); + } + char* os::reserve_memory(size_t bytes, char* addr, size_t alignment_hint, MEMFLAGS flags) { char* result = pd_reserve_memory(bytes, addr, alignment_hint); if (result != NULL) { MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC);
*** 1626,1637 **** } return result; } ! char* os::attempt_reserve_memory_at(size_t bytes, char* addr) { ! char* result = pd_attempt_reserve_memory_at(bytes, addr); if (result != NULL) { MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC); } return result; } --- 1630,1641 ---- } return result; } ! char* os::attempt_reserve_memory_at(size_t bytes, char* addr, int file_desc) { ! char* result = pd_attempt_reserve_memory_at(bytes, addr, file_desc); if (result != NULL) { MemTracker::record_virtual_memory_reserve((address)result, bytes, CALLER_PC); } return result; }
< prev index next >