comparison src/os/linux/vm/os_linux.cpp @ 3825: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 b0b8491925fe
children 7c2653aefc46
comparison
equal deleted inserted replaced
3824:6aa4feb8a366 3825:a20e6e447d3d
2532 ::madvise(addr, bytes, MADV_HUGEPAGE); 2532 ::madvise(addr, bytes, MADV_HUGEPAGE);
2533 } 2533 }
2534 } 2534 }
2535 2535
2536 void os::free_memory(char *addr, size_t bytes) { 2536 void os::free_memory(char *addr, size_t bytes) {
2537 ::madvise(addr, bytes, MADV_DONTNEED); 2537 commit_memory(addr, bytes, false);
2538 } 2538 }
2539 2539
2540 void os::numa_make_global(char *addr, size_t bytes) { 2540 void os::numa_make_global(char *addr, size_t bytes) {
2541 Linux::numa_interleave_memory(addr, bytes); 2541 Linux::numa_interleave_memory(addr, bytes);
2542 } 2542 }