mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
6684395: Port NUMA-aware allocator to linux
NUMA-aware allocator port to Linux Reviewed-by: jmasa, apetrusenko
This commit is contained in:
parent
f784be24d1
commit
a24f915b60
14 changed files with 260 additions and 73 deletions
|
@ -2602,7 +2602,7 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
|
|||
}
|
||||
|
||||
// Tell the OS to make the range local to the first-touching LWP
|
||||
void os::numa_make_local(char *addr, size_t bytes) {
|
||||
void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) {
|
||||
assert((intptr_t)addr % os::vm_page_size() == 0, "Address should be page-aligned.");
|
||||
if (madvise(addr, bytes, MADV_ACCESS_LWP) < 0) {
|
||||
debug_only(warning("MADV_ACCESS_LWP failed."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue