src/share/vm/runtime/os.cpp
Print this page
rev 4525 : 8014611: reserve_and_align() assumptions are invalid on windows
Summary: also reviewed by ron.durbin@oracle.com, thomas.schatzl@oracle.com
Reviewed-by: dcubed, brutisso
*** 1459,1468 ****
--- 1459,1474 ----
MemTracker::record_virtual_memory_release((address)addr, bytes);
}
return res;
}
+ bool os::release_or_uncommit_partial_region(char * addr, size_t bytes) {
+ if (can_release_partial_region()) {
+ return release_memory(addr, bytes);
+ }
+ return uncommit_memory(addr, bytes);
+ }
char* os::map_memory(int fd, const char* file_name, size_t file_offset,
char *addr, size_t bytes, bool read_only,
bool allow_exec) {
char* result = pd_map_memory(fd, file_name, file_offset, addr, bytes, read_only, allow_exec);