Mercurial > hg > truffle
diff src/os/linux/vm/os_linux.cpp @ 267:9d6a3a6891f8
6720130: NUMA allocator: The linux version should search for libnuma.so.1
Summary: Search for libnuma.so.1 on Linux and liblgrp.so.1 on Solaris.
Reviewed-by: jmasa
author | iveresov |
---|---|
date | Mon, 14 Jul 2008 04:12:47 -0700 |
parents | f139919897d2 |
children | 850fdf70db2b |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Fri Jul 11 16:11:50 2008 -0700 +++ b/src/os/linux/vm/os_linux.cpp Mon Jul 14 04:12:47 2008 -0700 @@ -2278,7 +2278,7 @@ dlsym(RTLD_DEFAULT, "sched_getcpu"))); if (sched_getcpu() != -1) { // Does it work? - void *handle = dlopen("libnuma.so", RTLD_LAZY); + void *handle = dlopen("libnuma.so.1", RTLD_LAZY); if (handle != NULL) { set_numa_node_to_cpus(CAST_TO_FN_PTR(numa_node_to_cpus_func_t, dlsym(handle, "numa_node_to_cpus")));