< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page

1996   }
1997 
1998   status = CompilerConfig::check_args_consistency(status);
1999 #if INCLUDE_JVMCI
2000   if (status && EnableJVMCI) {
2001     PropertyList_unique_add(&_system_properties, "jdk.internal.vm.ci.enabled", "true",
2002         AddProperty, UnwriteableProperty, InternalProperty);
2003     if (!create_numbered_module_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
2004       return false;
2005     }
2006   }
2007 #endif
2008 
2009 #ifndef SUPPORT_RESERVED_STACK_AREA
2010   if (StackReservedPages != 0) {
2011     FLAG_SET_CMDLINE(StackReservedPages, 0);
2012     warning("Reserved Stack Area not supported on this platform");
2013   }
2014 #endif
2015 
2016 #if !defined(X86) && !defined(AARCH64) && !defined(PPC64)
2017   if (UseHeavyMonitors) {
2018     warning("UseHeavyMonitors is not fully implemented on this architecture");
2019   }
2020 #endif
2021 #if (defined(X86) || defined(PPC64)) && !defined(ZERO)
2022   if (UseHeavyMonitors && UseRTMForStackLocks) {
2023     fatal("-XX:+UseHeavyMonitors and -XX:+UseRTMForStackLocks are mutually exclusive");
2024   }
2025 #endif
2026   if (VerifyHeavyMonitors && !UseHeavyMonitors) {
2027     fatal("-XX:+VerifyHeavyMonitors requires -XX:+UseHeavyMonitors");
2028   }
2029 
2030   return status;
2031 }
2032 
2033 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2034   const char* option_type) {
2035   if (ignore) return false;
2036 

1996   }
1997 
1998   status = CompilerConfig::check_args_consistency(status);
1999 #if INCLUDE_JVMCI
2000   if (status && EnableJVMCI) {
2001     PropertyList_unique_add(&_system_properties, "jdk.internal.vm.ci.enabled", "true",
2002         AddProperty, UnwriteableProperty, InternalProperty);
2003     if (!create_numbered_module_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
2004       return false;
2005     }
2006   }
2007 #endif
2008 
2009 #ifndef SUPPORT_RESERVED_STACK_AREA
2010   if (StackReservedPages != 0) {
2011     FLAG_SET_CMDLINE(StackReservedPages, 0);
2012     warning("Reserved Stack Area not supported on this platform");
2013   }
2014 #endif
2015 
2016 #if !defined(X86) && !defined(AARCH64) && !defined(PPC64) && !defined(RISCV64)
2017   if (UseHeavyMonitors) {
2018     warning("UseHeavyMonitors is not fully implemented on this architecture");
2019   }
2020 #endif
2021 #if (defined(X86) || defined(PPC64)) && !defined(ZERO)
2022   if (UseHeavyMonitors && UseRTMForStackLocks) {
2023     fatal("-XX:+UseHeavyMonitors and -XX:+UseRTMForStackLocks are mutually exclusive");
2024   }
2025 #endif
2026   if (VerifyHeavyMonitors && !UseHeavyMonitors) {
2027     fatal("-XX:+VerifyHeavyMonitors requires -XX:+UseHeavyMonitors");
2028   }
2029 
2030   return status;
2031 }
2032 
2033 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2034   const char* option_type) {
2035   if (ignore) return false;
2036 
< prev index next >