< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page
rev 52017 : All changes for G1 GC moved from 'combined' repo folder


2051     PropertyList_unique_add(&_system_properties, "jdk.internal.vm.ci.enabled", "true",
2052         AddProperty, UnwriteableProperty, InternalProperty);
2053     if (!create_numbered_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
2054       return false;
2055     }
2056   }
2057 #endif
2058 
2059 #ifndef SUPPORT_RESERVED_STACK_AREA
2060   if (StackReservedPages != 0) {
2061     FLAG_SET_CMDLINE(intx, StackReservedPages, 0);
2062     warning("Reserved Stack Area not supported on this platform");
2063   }
2064 #endif
2065 
2066   if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
2067     if ((UseNUMAInterleaving && !FLAG_IS_DEFAULT(UseNUMAInterleaving)) || (UseNUMA && !FLAG_IS_DEFAULT(UseNUMA))) {
2068       log_warning(arguments) ("NUMA support for Heap depends on the file system when AllocateHeapAt option is used.\n");
2069     }
2070   }













2071   return status;
2072 }
2073 
2074 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2075   const char* option_type) {
2076   if (ignore) return false;
2077 
2078   const char* spacer = " ";
2079   if (option_type == NULL) {
2080     option_type = ++spacer; // Set both to the empty string.
2081   }
2082 
2083   if (os::obsolete_option(option)) {
2084     jio_fprintf(defaultStream::error_stream(),
2085                 "Obsolete %s%soption: %s\n", option_type, spacer,
2086       option->optionString);
2087     return false;
2088   } else {
2089     jio_fprintf(defaultStream::error_stream(),
2090                 "Unrecognized %s%soption: %s\n", option_type, spacer,




2051     PropertyList_unique_add(&_system_properties, "jdk.internal.vm.ci.enabled", "true",
2052         AddProperty, UnwriteableProperty, InternalProperty);
2053     if (!create_numbered_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
2054       return false;
2055     }
2056   }
2057 #endif
2058 
2059 #ifndef SUPPORT_RESERVED_STACK_AREA
2060   if (StackReservedPages != 0) {
2061     FLAG_SET_CMDLINE(intx, StackReservedPages, 0);
2062     warning("Reserved Stack Area not supported on this platform");
2063   }
2064 #endif
2065 
2066   if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
2067     if ((UseNUMAInterleaving && !FLAG_IS_DEFAULT(UseNUMAInterleaving)) || (UseNUMA && !FLAG_IS_DEFAULT(UseNUMA))) {
2068       log_warning(arguments) ("NUMA support for Heap depends on the file system when AllocateHeapAt option is used.\n");
2069     }
2070   }
2071 
2072   if(!FLAG_IS_DEFAULT(AllocateHeapAt) && !FLAG_IS_DEFAULT(AllocateOldGenAt)) {
2073     jio_fprintf(defaultStream::error_stream(),
2074                 "AllocateHeapAt and AllocateOldGenAt cannot be used together.\n");
2075     status = false;
2076   }
2077 
2078   if (!FLAG_IS_DEFAULT(AllocateOldGenAt) && (UseSerialGC || UseConcMarkSweepGC || UseEpsilonGC || UseZGC)) {
2079     jio_fprintf(defaultStream::error_stream(),
2080       "AllocateOldGenAt not supported for selected GC.\n");
2081     status = false;
2082   }
2083 
2084   return status;
2085 }
2086 
2087 bool Arguments::is_bad_option(const JavaVMOption* option, jboolean ignore,
2088   const char* option_type) {
2089   if (ignore) return false;
2090 
2091   const char* spacer = " ";
2092   if (option_type == NULL) {
2093     option_type = ++spacer; // Set both to the empty string.
2094   }
2095 
2096   if (os::obsolete_option(option)) {
2097     jio_fprintf(defaultStream::error_stream(),
2098                 "Obsolete %s%soption: %s\n", option_type, spacer,
2099       option->optionString);
2100     return false;
2101   } else {
2102     jio_fprintf(defaultStream::error_stream(),
2103                 "Unrecognized %s%soption: %s\n", option_type, spacer,


< prev index next >