comparison src/os/bsd/vm/os_bsd.cpp @ 4734:20bfb6d15a94

7124829: NUMA: memory leak on Linux with large pages Summary: In os::free_memory() use mmap with the same attributes as for the heap space Reviewed-by: kvn Contributed-by: Aleksey Ignatenko <aleksey.v.ignatenko@intel.com>
author iveresov
date Tue, 27 Dec 2011 16:43:49 -0800
parents e7dead7e90af
children db18ca98d237
comparison
equal deleted inserted replaced
4730:7faca6dfa2ed 4734:20bfb6d15a94
2833 ::madvise(addr, bytes, MADV_HUGEPAGE); 2833 ::madvise(addr, bytes, MADV_HUGEPAGE);
2834 } 2834 }
2835 #endif 2835 #endif
2836 } 2836 }
2837 2837
2838 void os::free_memory(char *addr, size_t bytes) { 2838 void os::free_memory(char *addr, size_t bytes, size_t alignment_hint) {
2839 ::madvise(addr, bytes, MADV_DONTNEED); 2839 ::madvise(addr, bytes, MADV_DONTNEED);
2840 } 2840 }
2841 2841
2842 void os::numa_make_global(char *addr, size_t bytes) { 2842 void os::numa_make_global(char *addr, size_t bytes) {
2843 } 2843 }