7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008
Summary: Use mmap() instead of madvise(MADV_DONTNEED) to uncommit pages
Reviewed-by: ysr
--- a/hotspot/src/os/linux/vm/os_linux.cpp Tue Aug 02 12:13:13 2011 -0700
+++ b/hotspot/src/os/linux/vm/os_linux.cpp Fri Aug 05 16:44:01 2011 -0700
@@ -2534,7 +2534,7 @@
}
void os::free_memory(char *addr, size_t bytes) {
- ::madvise(addr, bytes, MADV_DONTNEED);
+ commit_memory(addr, bytes, false);
}
void os::numa_make_global(char *addr, size_t bytes) {