2472 "Invalid NonNMethodCodeHeapSize=%dK. Must be at least %uK.\n", NonNMethodCodeHeapSize/K,
2473 min_code_cache_size/K);
2474 status = false;
2475 }
2476
2477 if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {
2478 warning("The VM option CICompilerCountPerCPU overrides CICompilerCount.");
2479 }
2480
2481 #ifndef SUPPORT_RESERVED_STACK_AREA
2482 if (StackReservedPages != 0) {
2483 FLAG_SET_CMDLINE(intx, StackReservedPages, 0);
2484 warning("Reserved Stack Area not supported on this platform");
2485 }
2486 #endif
2487
2488 if (LINUX_ONLY(LP64_ONLY(false &&)) !FLAG_IS_DEFAULT(ValueTypePassFieldsAsArgs)) {
2489 FLAG_SET_CMDLINE(bool, ValueTypePassFieldsAsArgs, false);
2490 warning("ValueTypePassFieldsAsArgs is not supported on this platform");
2491 }
2492 return status;
2493 }
2494
2495 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2496 const char* option_type) {
2497 if (ignore) return false;
2498
2499 const char* spacer = " ";
2500 if (option_type == NULL) {
2501 option_type = ++spacer; // Set both to the empty string.
2502 }
2503
2504 if (os::obsolete_option(option)) {
2505 jio_fprintf(defaultStream::error_stream(),
2506 "Obsolete %s%soption: %s\n", option_type, spacer,
2507 option->optionString);
2508 return false;
2509 } else {
2510 jio_fprintf(defaultStream::error_stream(),
2511 "Unrecognized %s%soption: %s\n", option_type, spacer,
|
2472 "Invalid NonNMethodCodeHeapSize=%dK. Must be at least %uK.\n", NonNMethodCodeHeapSize/K,
2473 min_code_cache_size/K);
2474 status = false;
2475 }
2476
2477 if (!FLAG_IS_DEFAULT(CICompilerCount) && !FLAG_IS_DEFAULT(CICompilerCountPerCPU) && CICompilerCountPerCPU) {
2478 warning("The VM option CICompilerCountPerCPU overrides CICompilerCount.");
2479 }
2480
2481 #ifndef SUPPORT_RESERVED_STACK_AREA
2482 if (StackReservedPages != 0) {
2483 FLAG_SET_CMDLINE(intx, StackReservedPages, 0);
2484 warning("Reserved Stack Area not supported on this platform");
2485 }
2486 #endif
2487
2488 if (LINUX_ONLY(LP64_ONLY(false &&)) !FLAG_IS_DEFAULT(ValueTypePassFieldsAsArgs)) {
2489 FLAG_SET_CMDLINE(bool, ValueTypePassFieldsAsArgs, false);
2490 warning("ValueTypePassFieldsAsArgs is not supported on this platform");
2491 }
2492
2493 if (FLAG_IS_DEFAULT(TieredCompilation)) {
2494 // C1 has no support for value types
2495 TieredCompilation = false;
2496 }
2497
2498 return status;
2499 }
2500
2501 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2502 const char* option_type) {
2503 if (ignore) return false;
2504
2505 const char* spacer = " ";
2506 if (option_type == NULL) {
2507 option_type = ++spacer; // Set both to the empty string.
2508 }
2509
2510 if (os::obsolete_option(option)) {
2511 jio_fprintf(defaultStream::error_stream(),
2512 "Obsolete %s%soption: %s\n", option_type, spacer,
2513 option->optionString);
2514 return false;
2515 } else {
2516 jio_fprintf(defaultStream::error_stream(),
2517 "Unrecognized %s%soption: %s\n", option_type, spacer,
|