2520 if (LP64_ONLY(false &&) !FLAG_IS_DEFAULT(ValueTypePassFieldsAsArgs)) { 2521 FLAG_SET_CMDLINE(bool, ValueTypePassFieldsAsArgs, false); 2522 warning("ValueTypePassFieldsAsArgs is not supported on this platform"); 2523 } 2524 2525 if (LP64_ONLY(false &&) !FLAG_IS_DEFAULT(ValueTypeReturnedAsFields)) { 2526 FLAG_SET_CMDLINE(bool, ValueTypeReturnedAsFields, false); 2527 warning("ValueTypeReturnedAsFields is not supported on this platform"); 2528 } 2529 2530 if (FLAG_IS_DEFAULT(TieredCompilation)) { 2531 // C1 has no support for value types 2532 TieredCompilation = false; 2533 } 2534 2535 if(EnableMVT && EnableValhalla) { 2536 jio_fprintf(defaultStream::error_stream(), 2537 "Conflicting combination in option list: EnableMVT and EnableValhalla cannot be both enabled at the same time"); 2538 } 2539 2540 return status; 2541 } 2542 2543 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2544 const char* option_type) { 2545 if (ignore) return false; 2546 2547 const char* spacer = " "; 2548 if (option_type == NULL) { 2549 option_type = ++spacer; // Set both to the empty string. 2550 } 2551 2552 if (os::obsolete_option(option)) { 2553 jio_fprintf(defaultStream::error_stream(), 2554 "Obsolete %s%soption: %s\n", option_type, spacer, 2555 option->optionString); 2556 return false; 2557 } else { 2558 jio_fprintf(defaultStream::error_stream(), 2559 "Unrecognized %s%soption: %s\n", option_type, spacer, | 2520 if (LP64_ONLY(false &&) !FLAG_IS_DEFAULT(ValueTypePassFieldsAsArgs)) { 2521 FLAG_SET_CMDLINE(bool, ValueTypePassFieldsAsArgs, false); 2522 warning("ValueTypePassFieldsAsArgs is not supported on this platform"); 2523 } 2524 2525 if (LP64_ONLY(false &&) !FLAG_IS_DEFAULT(ValueTypeReturnedAsFields)) { 2526 FLAG_SET_CMDLINE(bool, ValueTypeReturnedAsFields, false); 2527 warning("ValueTypeReturnedAsFields is not supported on this platform"); 2528 } 2529 2530 if (FLAG_IS_DEFAULT(TieredCompilation)) { 2531 // C1 has no support for value types 2532 TieredCompilation = false; 2533 } 2534 2535 if(EnableMVT && EnableValhalla) { 2536 jio_fprintf(defaultStream::error_stream(), 2537 "Conflicting combination in option list: EnableMVT and EnableValhalla cannot be both enabled at the same time"); 2538 } 2539 2540 if (!EnableMVT && CompileTheWorld) { 2541 if (!FLAG_IS_DEFAULT(EnableMVT)) { 2542 warning("EnableMVT enabled due to CompileTheWorld."); 2543 } 2544 // We need to enable MVT because CompileTheWorld may process java.lang.__Value 2545 FLAG_SET_CMDLINE(bool, EnableMVT, true); 2546 } 2547 2548 return status; 2549 } 2550 2551 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore, 2552 const char* option_type) { 2553 if (ignore) return false; 2554 2555 const char* spacer = " "; 2556 if (option_type == NULL) { 2557 option_type = ++spacer; // Set both to the empty string. 2558 } 2559 2560 if (os::obsolete_option(option)) { 2561 jio_fprintf(defaultStream::error_stream(), 2562 "Obsolete %s%soption: %s\n", option_type, spacer, 2563 option->optionString); 2564 return false; 2565 } else { 2566 jio_fprintf(defaultStream::error_stream(), 2567 "Unrecognized %s%soption: %s\n", option_type, spacer, |