7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008

Use mmap() instead of madvise(MADV_DONTNEED) to uncommit pages

Reviewed-by: ysr
This commit is contained in:
Igor Veresov 2011-08-05 16:44:01 -07:00
parent f7d3d2b63e
commit 427c404400

View file

@ -2534,7 +2534,7 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
}
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) {