changeset 2588:a20e6e447d3d

7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008 Summary: Use mmap() instead of madvise(MADV_DONTNEED) to uncommit pages Reviewed-by: ysr
author iveresov
date Fri, 05 Aug 2011 16:44:01 -0700
parents 6aa4feb8a366
children 7c2653aefc46
files src/os/linux/vm/os_linux.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Tue Aug 02 12:13:13 2011 -0700
+++ b/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) {