comparison 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
comparison
equal deleted inserted replaced
14496:99fc8c086679 14497:9a83b7b3e37c
2386 } 2386 }
2387 2387
2388 status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction"); 2388 status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction");
2389 status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity"); 2389 status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity");
2390 2390
2391 // TieredCompilation needs at least 2 compiler threads.
2392 const int num_min_compiler_threads = (TieredCompilation) ? 2 : 1;
2393 status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount");
2394
2391 return status; 2395 return status;
2392 } 2396 }
2393 2397
2394 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2398 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2395 const char* option_type) { 2399 const char* option_type) {