comparison src/os/solaris/vm/os_solaris.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 e3729351c946
children d6340ab4105b
comparison
equal deleted inserted replaced
266:2214b226b7f0 267:9d6a3a6891f8
4568 } 4568 }
4569 } 4569 }
4570 } 4570 }
4571 4571
4572 void os::Solaris::liblgrp_init() { 4572 void os::Solaris::liblgrp_init() {
4573 void *handle = dlopen("liblgrp.so", RTLD_LAZY); 4573 void *handle = dlopen("liblgrp.so.1", RTLD_LAZY);
4574 if (handle != NULL) { 4574 if (handle != NULL) {
4575 os::Solaris::set_lgrp_home(CAST_TO_FN_PTR(lgrp_home_func_t, dlsym(handle, "lgrp_home"))); 4575 os::Solaris::set_lgrp_home(CAST_TO_FN_PTR(lgrp_home_func_t, dlsym(handle, "lgrp_home")));
4576 os::Solaris::set_lgrp_init(CAST_TO_FN_PTR(lgrp_init_func_t, dlsym(handle, "lgrp_init"))); 4576 os::Solaris::set_lgrp_init(CAST_TO_FN_PTR(lgrp_init_func_t, dlsym(handle, "lgrp_init")));
4577 os::Solaris::set_lgrp_fini(CAST_TO_FN_PTR(lgrp_fini_func_t, dlsym(handle, "lgrp_fini"))); 4577 os::Solaris::set_lgrp_fini(CAST_TO_FN_PTR(lgrp_fini_func_t, dlsym(handle, "lgrp_fini")));
4578 os::Solaris::set_lgrp_root(CAST_TO_FN_PTR(lgrp_root_func_t, dlsym(handle, "lgrp_root"))); 4578 os::Solaris::set_lgrp_root(CAST_TO_FN_PTR(lgrp_root_func_t, dlsym(handle, "lgrp_root")));