src/hotspot/os/solaris/os_solaris.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/hotspot/os/solaris/os_solaris.cpp Fri Oct 20 09:45:04 2017
--- new/src/hotspot/os/solaris/os_solaris.cpp Fri Oct 20 09:45:03 2017
*** 289,298 ****
--- 289,306 ----
_physical_memory = (julong)sysconf(_SC_PHYS_PAGES) *
(julong)sysconf(_SC_PAGESIZE);
}
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);
pid_t pid = getpid();
psetid_t pset = PS_NONE;
// Are we running in a processor set or is there any processor set around?
if (pset_bind(PS_QUERY, P_PID, pid, &pset) == 0) {
src/hotspot/os/solaris/os_solaris.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File