mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14: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
|
@ -256,7 +256,7 @@ class os: AllStatic {
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue