mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
7060842: UseNUMA crash with UseHugreTLBFS running SPECjvm2008
Use mmap() instead of madvise(MADV_DONTNEED) to uncommit pages Reviewed-by: ysr
This commit is contained in:
parent
f7d3d2b63e
commit
427c404400
1 changed files with 1 additions and 1 deletions
|
@ -2534,7 +2534,7 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
|
|||
}
|
||||
|
||||
void os::free_memory(char *addr, size_t bytes) {
|
||||
::madvise(addr, bytes, MADV_DONTNEED);
|
||||
commit_memory(addr, bytes, false);
|
||||
}
|
||||
|
||||
void os::numa_make_global(char *addr, size_t bytes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue