mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7124829: NUMA: memory leak on Linux with large pages
In os::free_memory() use mmap with the same attributes as for the heap space Reviewed-by: kvn
This commit is contained in:
parent
3c164a7525
commit
c7ec06ba8e
7 changed files with 10 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue