src/hotspot/os/bsd/os_bsd.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/hotspot/os/bsd/os_bsd.cpp	Wed Oct 11 14:34:33 2017
--- new/src/hotspot/os/bsd/os_bsd.cpp	Wed Oct 11 14:34:31 2017

*** 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", + (int)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