Mercurial > hg > graal-compiler
diff src/share/vm/runtime/os.hpp @ 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 | 11c26bfcf8c7 |
children | 2b3acb34791f |
line wrap: on
line diff
--- a/src/share/vm/runtime/os.hpp Tue Dec 27 12:38:49 2011 -0800 +++ b/src/share/vm/runtime/os.hpp Tue Dec 27 16:43:49 2011 -0800 @@ -256,7 +256,7 @@ char *addr, size_t bytes, bool read_only, bool allow_exec); static bool unmap_memory(char *addr, size_t bytes); - static void free_memory(char *addr, size_t bytes); + static void free_memory(char *addr, size_t bytes, size_t alignment_hint); static void realign_memory(char *addr, size_t bytes, size_t alignment_hint); // NUMA-specific interface