src/os/bsd/vm/os_bsd.cpp

changeset 9413
5aa3d728164a
parent 9060
438da598a947
child 9417
65409bcab2ad
equal deleted inserted replaced
9412:2bf8498a25ec 9413:5aa3d728164a
3763 fatal("Could not enable polling page"); 3763 fatal("Could not enable polling page");
3764 } 3764 }
3765 }; 3765 };
3766 3766
3767 int os::active_processor_count() { 3767 int os::active_processor_count() {
3768 // User has overridden the number of active processors
3769 if (ActiveProcessorCount > 0) {
3770 if (PrintActiveCpus) {
3771 tty->print_cr("active_processor_count: "
3772 "active processor count set by user : %d",
3773 ActiveProcessorCount);
3774 }
3775 return ActiveProcessorCount;
3776 }
3777
3768 return _processor_count; 3778 return _processor_count;
3769 } 3779 }
3770 3780
3771 void os::set_native_thread_name(const char *name) { 3781 void os::set_native_thread_name(const char *name) {
3772 #if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5 3782 #if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5

mercurial