2370 } else if (ReservedCodeCacheSize < min_code_cache_size) { 2371 jio_fprintf(defaultStream::error_stream(), 2372 "Invalid ReservedCodeCacheSize=%dK. Must be at least %uK.\n", ReservedCodeCacheSize/K, 2373 min_code_cache_size/K); 2374 status = false; 2375 } else if (ReservedCodeCacheSize > 2*G) { 2376 // Code cache size larger than MAXINT is not supported. 2377 jio_fprintf(defaultStream::error_stream(), 2378 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M, 2379 (2*G)/M); 2380 status = false; 2381 } 2382 2383 status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction"); 2384 status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity"); 2385 2386 if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) { 2387 warning("The VM option CICompilerCountPerCPU overrides CICompilerCount."); 2388 } 2389 2390 return status; 2391 } 2392 2393 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2394 const char* option_type) { 2395 if (ignore) return false; 2396 2397 const char* spacer = " "; 2398 if (option_type == NULL) { 2399 option_type = ++spacer; // Set both to the empty string. 2400 } 2401 2402 if (os::obsolete_option(option)) { 2403 jio_fprintf(defaultStream::error_stream(), 2404 "Obsolete %s%soption: %s\n", option_type, spacer, 2405 option->optionString); 2406 return false; 2407 } else { 2408 jio_fprintf(defaultStream::error_stream(), 2409 "Unrecognized %s%soption: %s\n", option_type, spacer, | 2370 } else if (ReservedCodeCacheSize < min_code_cache_size) { 2371 jio_fprintf(defaultStream::error_stream(), 2372 "Invalid ReservedCodeCacheSize=%dK. Must be at least %uK.\n", ReservedCodeCacheSize/K, 2373 min_code_cache_size/K); 2374 status = false; 2375 } else if (ReservedCodeCacheSize > 2*G) { 2376 // Code cache size larger than MAXINT is not supported. 2377 jio_fprintf(defaultStream::error_stream(), 2378 "Invalid ReservedCodeCacheSize=%dM. Must be at most %uM.\n", ReservedCodeCacheSize/M, 2379 (2*G)/M); 2380 status = false; 2381 } 2382 2383 status &= verify_interval(NmethodSweepFraction, 1, ReservedCodeCacheSize/K, "NmethodSweepFraction"); 2384 status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity"); 2385 2386 if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) { 2387 warning("The VM option CICompilerCountPerCPU overrides CICompilerCount."); 2388 } 2389 2390 status &= check_vm_args_consistency_ext(); 2391 2392 return status; 2393 } 2394 2395 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2396 const char* option_type) { 2397 if (ignore) return false; 2398 2399 const char* spacer = " "; 2400 if (option_type == NULL) { 2401 option_type = ++spacer; // Set both to the empty string. 2402 } 2403 2404 if (os::obsolete_option(option)) { 2405 jio_fprintf(defaultStream::error_stream(), 2406 "Obsolete %s%soption: %s\n", option_type, spacer, 2407 option->optionString); 2408 return false; 2409 } else { 2410 jio_fprintf(defaultStream::error_stream(), 2411 "Unrecognized %s%soption: %s\n", option_type, spacer, |