mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -2821,7 +2821,7 @@ bool os::commit_memory(char* addr, size_t bytes, size_t alignment_hint,
|
|||
}
|
||||
|
||||
// Uncommit the pages in a specified region.
|
||||
void os::free_memory(char* addr, size_t bytes) {
|
||||
void os::free_memory(char* addr, size_t bytes, size_t alignment_hint) {
|
||||
if (madvise(addr, bytes, MADV_FREE) < 0) {
|
||||
debug_only(warning("MADV_FREE failed."));
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue