diff src/share/vm/runtime/arguments.cpp @ 20596:4356234e712a

8041992: Fix of JDK-8034775 neglects to account for non-JIT VMs Summary: Allow 0 compiler threads if no JIT is used. Reviewed-by: kvn, dholmes Contributed-by: Severin Gehwolf <sgehwolf@redhat.com>
author anoll
date Fri, 02 May 2014 06:24:39 +0200
parents e8225dc7c94b
children 327c00d0f091
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Sat Mar 29 14:54:48 2014 +0400
+++ b/src/share/vm/runtime/arguments.cpp	Fri May 02 06:24:39 2014 +0200
@@ -2463,7 +2463,7 @@
 #endif
 
   // 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");
 
   return status;