src/hotspot/os/aix/os_aix.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/hotspot/os/aix/os_aix.cpp	Tue Oct 24 13:04:40 2017
--- new/src/hotspot/os/aix/os_aix.cpp	Tue Oct 24 13:04:39 2017

*** 3613,3622 **** --- 3613,3630 ---- fatal("Could not enable polling page at " PTR_FORMAT, _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; + } + int online_cpus = ::sysconf(_SC_NPROCESSORS_ONLN); assert(online_cpus > 0 && online_cpus <= processor_count(), "sanity check"); return online_cpus; }

src/hotspot/os/aix/os_aix.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File