diff src/share/vm/runtime/arguments.cpp @ 20593:2eda90444a0d

8034775: Failing to initialize VM when running with negative value for -XX:CICompilerCount Summary: Ensure appropriate min. number of compiler threads (1 for non-tiered, and 2 for tiered) Reviewed-by: kvn
author anoll
date Tue, 25 Feb 2014 13:52:37 +0100
parents b9c94af14fd0
children e8225dc7c94b
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu Oct 30 10:51:06 2014 +0100
+++ b/src/share/vm/runtime/arguments.cpp	Tue Feb 25 13:52:37 2014 +0100
@@ -2462,6 +2462,10 @@
   status &= verify_interval(SafepointPollOffset, 0, os::vm_page_size() - BytesPerWord, "SafepointPollOffset");
 #endif
 
+  // TieredCompilation needs at least 2 compiler threads.
+  const int num_min_compiler_threads = (TieredCompilation) ? 2 : 1;
+  status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount");
+
   return status;
 }