src/hotspot/os/bsd/os_bsd.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff src/hotspot/os/bsd/os_bsd.cpp
src/hotspot/os/bsd/os_bsd.cpp
Print this page
*** 3490,3499 ****
--- 3490,3507 ----
fatal("Could not enable polling page");
}
}
int os::active_processor_count() {
+ // User has overridden the number of active processors
+ if (ActiveProcessorCount > 0) {
+ log_trace(os)("active_processor_count: "
+ "active processor count set by user : %d",
+ ActiveProcessorCount);
+ return ActiveProcessorCount;
+ }
+
return _processor_count;
}
void os::set_native_thread_name(const char *name) {
#if defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5
src/hotspot/os/bsd/os_bsd.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File