Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/arguments.cpp @ 14497:9a83b7b3e37c
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 | 8a9bb7821e28 |
children | 16c705d792be |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Tue Feb 25 10:26:21 2014 +0100 +++ b/src/share/vm/runtime/arguments.cpp Tue Feb 25 13:52:37 2014 +0100 @@ -2388,6 +2388,10 @@ 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; }