Mercurial > hg > truffle
comparison src/os/solaris/vm/os_solaris.cpp @ 288:70c4fb9cf899
Merge
author | apangin |
---|---|
date | Tue, 19 Aug 2008 06:02:07 -0700 |
parents | b7f01ad69d30 |
children | 1ee8caae33af |
comparison
equal
deleted
inserted
replaced
287:6e76352f1f62 | 288:70c4fb9cf899 |
---|---|
2676 ids[bottom++] = ids[cur]; | 2676 ids[bottom++] = ids[cur]; |
2677 } | 2677 } |
2678 } | 2678 } |
2679 top += r; | 2679 top += r; |
2680 cur++; | 2680 cur++; |
2681 } | |
2682 if (bottom == 0) { | |
2683 // Handle a situation, when the OS reports no memory available. | |
2684 // Assume UMA architecture. | |
2685 ids[0] = 0; | |
2686 return 1; | |
2681 } | 2687 } |
2682 return bottom; | 2688 return bottom; |
2683 } | 2689 } |
2684 | 2690 |
2685 // Detect the topology change. Typically happens during CPU pluggin-unplugging. | 2691 // Detect the topology change. Typically happens during CPU pluggin-unplugging. |
4600 } | 4606 } |
4601 } | 4607 } |
4602 } | 4608 } |
4603 | 4609 |
4604 void os::Solaris::liblgrp_init() { | 4610 void os::Solaris::liblgrp_init() { |
4605 void *handle = dlopen("liblgrp.so", RTLD_LAZY); | 4611 void *handle = dlopen("liblgrp.so.1", RTLD_LAZY); |
4606 if (handle != NULL) { | 4612 if (handle != NULL) { |
4607 os::Solaris::set_lgrp_home(CAST_TO_FN_PTR(lgrp_home_func_t, dlsym(handle, "lgrp_home"))); | 4613 os::Solaris::set_lgrp_home(CAST_TO_FN_PTR(lgrp_home_func_t, dlsym(handle, "lgrp_home"))); |
4608 os::Solaris::set_lgrp_init(CAST_TO_FN_PTR(lgrp_init_func_t, dlsym(handle, "lgrp_init"))); | 4614 os::Solaris::set_lgrp_init(CAST_TO_FN_PTR(lgrp_init_func_t, dlsym(handle, "lgrp_init"))); |
4609 os::Solaris::set_lgrp_fini(CAST_TO_FN_PTR(lgrp_fini_func_t, dlsym(handle, "lgrp_fini"))); | 4615 os::Solaris::set_lgrp_fini(CAST_TO_FN_PTR(lgrp_fini_func_t, dlsym(handle, "lgrp_fini"))); |
4610 os::Solaris::set_lgrp_root(CAST_TO_FN_PTR(lgrp_root_func_t, dlsym(handle, "lgrp_root"))); | 4616 os::Solaris::set_lgrp_root(CAST_TO_FN_PTR(lgrp_root_func_t, dlsym(handle, "lgrp_root"))); |