diff options
author | iveresov <none@none> | 2011-12-27 16:43:49 -0800 |
---|---|---|
committer | iveresov <none@none> | 2011-12-27 16:43:49 -0800 |
commit | 87dac77941f3c1011b8b892d0446223bd060ad9a (patch) | |
tree | cd77c60f66e8f4c70917a53d807e4e3ddcbc1e0a /src/os/linux | |
parent | 1c9fcb868bdbc5e37d02cd161f5a60cd11e12e7f (diff) |
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>
Diffstat (limited to 'src/os/linux')
-rw-r--r-- | src/os/linux/vm/os_linux.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/linux/vm/os_linux.cpp b/src/os/linux/vm/os_linux.cpp index a141f6a66..0946b753e 100644 --- a/src/os/linux/vm/os_linux.cpp +++ b/src/os/linux/vm/os_linux.cpp @@ -2546,8 +2546,8 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { } } -void os::free_memory(char *addr, size_t bytes) { - commit_memory(addr, bytes, false); +void os::free_memory(char *addr, size_t bytes, size_t alignment_hint) { + commit_memory(addr, bytes, alignment_hint, false); } void os::numa_make_global(char *addr, size_t bytes) { |