mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6720130: NUMA allocator: The linux version should search for libnuma.so.1
Search for libnuma.so.1 on Linux and liblgrp.so.1 on Solaris. Reviewed-by: jmasa
This commit is contained in:
parent
26625ab7f5
commit
e9e432633b
2 changed files with 2 additions and 2 deletions
|
@ -4570,7 +4570,7 @@ void os::Solaris::synchronization_init() {
|
|||
}
|
||||
|
||||
void os::Solaris::liblgrp_init() {
|
||||
void *handle = dlopen("liblgrp.so", RTLD_LAZY);
|
||||
void *handle = dlopen("liblgrp.so.1", RTLD_LAZY);
|
||||
if (handle != NULL) {
|
||||
os::Solaris::set_lgrp_home(CAST_TO_FN_PTR(lgrp_home_func_t, dlsym(handle, "lgrp_home")));
|
||||
os::Solaris::set_lgrp_init(CAST_TO_FN_PTR(lgrp_init_func_t, dlsym(handle, "lgrp_init")));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue