8041992: Fix of JDK-8034775 neglects to account for non-JIT VMs

Allow 0 compiler threads if no JIT is used.

Reviewed-by: kvn, dholmes
This commit is contained in:
Severin Gehwolf 2014-05-02 06:24:39 +02:00 committed by Albert Noll
parent d9056b18ee
commit a92fee550e
2 changed files with 18 additions and 1 deletions

View file

@ -2399,7 +2399,7 @@ bool Arguments::check_vm_args_consistency() {
status &= verify_interval(CodeCacheSegmentSize, 1, 1024, "CodeCacheSegmentSize");
// TieredCompilation needs at least 2 compiler threads.
const int num_min_compiler_threads = (TieredCompilation && (TieredStopAtLevel >= CompLevel_full_optimization)) ? 2 : 1;
const int num_min_compiler_threads = (TieredCompilation && (TieredStopAtLevel >= CompLevel_full_optimization)) ? 2 : CI_COMPILER_COUNT;
status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount");
if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {