2326 jio_fprintf(defaultStream::error_stream(), 2327 "Invalid ReservedCodeCacheSize: %dK. Must be at least InitialCodeCacheSize=%dK.\n", 2328 ReservedCodeCacheSize/K, InitialCodeCacheSize/K); 2329 status = false; 2330 } else if (ReservedCodeCacheSize < min_code_cache_size) { 2331 jio_fprintf(defaultStream::error_stream(), 2332 "Invalid ReservedCodeCacheSize=%dK. Must be at least %uK.\n", ReservedCodeCacheSize/K, 2333 min_code_cache_size/K); 2334 status = false; 2335 } else if (ReservedCodeCacheSize > 2*G) { 2336 // Code cache size larger than MAXINT is not supported. 2337 jio_fprintf(defaultStream::error_stream(), 2338 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M, 2339 (2*G)/M); 2340 status = false; 2341 } 2342 2343 status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction"); 2344 status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity"); 2345 2346 return status; 2347 } 2348 2349 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2350 const char* option_type) { 2351 if (ignore) return false; 2352 2353 const char* spacer = " "; 2354 if (option_type == NULL) { 2355 option_type = ++spacer; // Set both to the empty string. 2356 } 2357 2358 if (os::obsolete_option(option)) { 2359 jio_fprintf(defaultStream::error_stream(), 2360 "Obsolete %s%soption: %s\n", option_type, spacer, 2361 option->optionString); 2362 return false; 2363 } else { 2364 jio_fprintf(defaultStream::error_stream(), 2365 "Unrecognized %s%soption: %s\n", option_type, spacer, | 2326 jio_fprintf(defaultStream::error_stream(), 2327 "Invalid ReservedCodeCacheSize: %dK. Must be at least InitialCodeCacheSize=%dK.\n", 2328 ReservedCodeCacheSize/K, InitialCodeCacheSize/K); 2329 status = false; 2330 } else if (ReservedCodeCacheSize < min_code_cache_size) { 2331 jio_fprintf(defaultStream::error_stream(), 2332 "Invalid ReservedCodeCacheSize=%dK. Must be at least %uK.\n", ReservedCodeCacheSize/K, 2333 min_code_cache_size/K); 2334 status = false; 2335 } else if (ReservedCodeCacheSize > 2*G) { 2336 // Code cache size larger than MAXINT is not supported. 2337 jio_fprintf(defaultStream::error_stream(), 2338 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M, 2339 (2*G)/M); 2340 status = false; 2341 } 2342 2343 status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction"); 2344 status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity"); 2345 2346 // TieredCompilation needs at least 2 compiler threads. 2347 const int num_min_compiler_threads = (TieredCompilation) ? 2 : 1; 2348 status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount"); 2349 2350 return status; 2351 } 2352 2353 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2354 const char* option_type) { 2355 if (ignore) return false; 2356 2357 const char* spacer = " "; 2358 if (option_type == NULL) { 2359 option_type = ++spacer; // Set both to the empty string. 2360 } 2361 2362 if (os::obsolete_option(option)) { 2363 jio_fprintf(defaultStream::error_stream(), 2364 "Obsolete %s%soption: %s\n", option_type, spacer, 2365 option->optionString); 2366 return false; 2367 } else { 2368 jio_fprintf(defaultStream::error_stream(), 2369 "Unrecognized %s%soption: %s\n", option_type, spacer, |