7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008
authoriveresov
Fri, 05 Aug 2011 16:44:01 -0700
changeset 10238 b6982b2ffdaa
parent 10237 df347ffafa0d
child 10239 c7af330d33d9
7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008 Summary: Use mmap() instead of madvise(MADV_DONTNEED) to uncommit pages Reviewed-by: ysr
hotspot/src/os/linux/vm/os_linux.cpp
--- 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) {