< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page

2068   }
2069 
2070   status = CompilerConfig::check_args_consistency(status);
2071 #if INCLUDE_JVMCI
2072   if (status && EnableJVMCI) {
2073     PropertyList_unique_add(&_system_properties, "jdk.internal.vm.ci.enabled", "true",
2074         AddProperty, UnwriteableProperty, InternalProperty);
2075     if (!create_numbered_module_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
2076       return false;
2077     }
2078   }
2079 #endif
2080 
2081 #ifndef SUPPORT_RESERVED_STACK_AREA
2082   if (StackReservedPages != 0) {
2083     FLAG_SET_CMDLINE(StackReservedPages, 0);
2084     warning("Reserved Stack Area not supported on this platform");
2085   }
2086 #endif
2087 
2088 #if !defined(X86) && !defined(AARCH64) && !defined(PPC64)
2089   if (UseHeavyMonitors) {
2090     jio_fprintf(defaultStream::error_stream(),
2091                 "UseHeavyMonitors is not fully implemented on this architecture");
2092     return false;
2093   }
2094 #endif
2095 #if (defined(X86) || defined(PPC64)) && !defined(ZERO)
2096   if (UseHeavyMonitors && UseRTMForStackLocks) {
2097     jio_fprintf(defaultStream::error_stream(),
2098                 "-XX:+UseHeavyMonitors and -XX:+UseRTMForStackLocks are mutually exclusive");
2099 
2100     return false;
2101   }
2102 #endif
2103   if (VerifyHeavyMonitors && !UseHeavyMonitors) {
2104     jio_fprintf(defaultStream::error_stream(),
2105                 "-XX:+VerifyHeavyMonitors requires -XX:+UseHeavyMonitors");
2106     return false;
2107   }
2108 

2068   }
2069 
2070   status = CompilerConfig::check_args_consistency(status);
2071 #if INCLUDE_JVMCI
2072   if (status && EnableJVMCI) {
2073     PropertyList_unique_add(&_system_properties, "jdk.internal.vm.ci.enabled", "true",
2074         AddProperty, UnwriteableProperty, InternalProperty);
2075     if (!create_numbered_module_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
2076       return false;
2077     }
2078   }
2079 #endif
2080 
2081 #ifndef SUPPORT_RESERVED_STACK_AREA
2082   if (StackReservedPages != 0) {
2083     FLAG_SET_CMDLINE(StackReservedPages, 0);
2084     warning("Reserved Stack Area not supported on this platform");
2085   }
2086 #endif
2087 
2088 #if !defined(X86) && !defined(AARCH64) && !defined(PPC64) && !defined(RISCV64)
2089   if (UseHeavyMonitors) {
2090     jio_fprintf(defaultStream::error_stream(),
2091                 "UseHeavyMonitors is not fully implemented on this architecture");
2092     return false;
2093   }
2094 #endif
2095 #if (defined(X86) || defined(PPC64)) && !defined(ZERO)
2096   if (UseHeavyMonitors && UseRTMForStackLocks) {
2097     jio_fprintf(defaultStream::error_stream(),
2098                 "-XX:+UseHeavyMonitors and -XX:+UseRTMForStackLocks are mutually exclusive");
2099 
2100     return false;
2101   }
2102 #endif
2103   if (VerifyHeavyMonitors && !UseHeavyMonitors) {
2104     jio_fprintf(defaultStream::error_stream(),
2105                 "-XX:+VerifyHeavyMonitors requires -XX:+UseHeavyMonitors");
2106     return false;
2107   }
2108 
< prev index next >