1.1 --- a/src/os/windows/vm/os_windows.cpp Tue Jul 10 18:31:51 2018 +0100 1.2 +++ b/src/os/windows/vm/os_windows.cpp Fri Jul 06 18:50:13 2018 +0000 1.3 @@ -716,6 +716,16 @@ 1.4 #endif 1.5 1.6 int os::active_processor_count() { 1.7 + // User has overridden the number of active processors 1.8 + if (ActiveProcessorCount > 0) { 1.9 + if (PrintActiveCpus) { 1.10 + tty->print_cr("active_processor_count: " 1.11 + "active processor count set by user : %d", 1.12 + ActiveProcessorCount); 1.13 + } 1.14 + return ActiveProcessorCount; 1.15 + } 1.16 + 1.17 DWORD_PTR lpProcessAffinityMask = 0; 1.18 DWORD_PTR lpSystemAffinityMask = 0; 1.19 int proc_count = processor_count();