comparison src/share/vm/runtime/compilationPolicy.cpp @ 17906:7150b16fda52

8029436: CICompilerCount is not updated when the number of compiler threads is adjusted to the number of CPUs Summary: CICompilerCount is updated in AdvancedThresholdPolicy::initialize, SimpleThresholdPolicy::initialize and NonTieredCompPolicy::initialize. A warning is printed if the usersets both, CICompilerCount and CICompilerCountPerCPU. Reviewed-by: kvn, twisti Contributed-by: Tobias Hartmann <tobias.hartmann@oracle.com>
author anoll
date Mon, 14 Apr 2014 08:24:28 +0200
parents f99558245e5c
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17905:4e03f6196358 17906:7150b16fda52
180 if (CICompilerCountPerCPU) { 180 if (CICompilerCountPerCPU) {
181 // Example: if CICompilerCountPerCPU is true, then we get 181 // Example: if CICompilerCountPerCPU is true, then we get
182 // max(log2(8)-1,1) = 2 compiler threads on an 8-way machine. 182 // max(log2(8)-1,1) = 2 compiler threads on an 8-way machine.
183 // May help big-app startup time. 183 // May help big-app startup time.
184 _compiler_count = MAX2(log2_intptr(os::active_processor_count())-1,1); 184 _compiler_count = MAX2(log2_intptr(os::active_processor_count())-1,1);
185 FLAG_SET_ERGO(intx, CICompilerCount, _compiler_count);
185 } else { 186 } else {
186 _compiler_count = CICompilerCount; 187 _compiler_count = CICompilerCount;
187 } 188 }
188 } 189 }
189 190