comparison 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
comparison
equal deleted inserted replaced
20584:ef9eda2c1abe 20593:2eda90444a0d
2460 2460
2461 #ifdef COMPILER1 2461 #ifdef COMPILER1
2462 status &= verify_interval(SafepointPollOffset, 0, os::vm_page_size() - BytesPerWord, "SafepointPollOffset"); 2462 status &= verify_interval(SafepointPollOffset, 0, os::vm_page_size() - BytesPerWord, "SafepointPollOffset");
2463 #endif 2463 #endif
2464 2464
2465 // TieredCompilation needs at least 2 compiler threads.
2466 const int num_min_compiler_threads = (TieredCompilation) ? 2 : 1;
2467 status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount");
2468
2465 return status; 2469 return status;
2466 } 2470 }
2467 2471
2468 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2472 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2469 const char* option_type) { 2473 const char* option_type) {