8034775: Failing to initialize VM when running with negative value for -XX:CICompilerCount

Ensure appropriate min. number of compiler threads (1 for non-tiered, and 2 for tiered)

Reviewed-by: kvn
This commit is contained in:
Albert Noll 2014-02-25 13:52:37 +01:00
parent e3931e81eb
commit a609fe84bb
2 changed files with 44 additions and 0 deletions

View file

@ -2388,6 +2388,10 @@ bool Arguments::check_vm_args_consistency() {
status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction");
status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity");
// 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;
}