mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +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
|
@ -51,7 +51,7 @@ void MutableSpace::numa_setup_pages(MemRegion mr, bool clear_space) {
|
|||
size_t size = pointer_delta(end, start, sizeof(char));
|
||||
if (clear_space) {
|
||||
// Prefer page reallocation to migration.
|
||||
os::free_memory((char*)start, size);
|
||||
os::free_memory((char*)start, size, page_size);
|
||||
}
|
||||
os::numa_make_global((char*)start, size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue