< prev index next >

hotspot/src/share/vm/runtime/arguments.cpp

Print this page




3695     // Java heap and the code cache.
3696     FLAG_SET_DEFAULT(UseLargePages, false);
3697   }
3698 
3699 #elif defined(COMPILER2)
3700   if (!FLAG_IS_DEFAULT(OptoLoopAlignment) && FLAG_IS_DEFAULT(MaxLoopPad)) {
3701     FLAG_SET_DEFAULT(MaxLoopPad, OptoLoopAlignment-1);
3702   }
3703 #endif
3704 
3705 #if !defined(COMPILER2) && !INCLUDE_JVMCI
3706   UNSUPPORTED_OPTION(ProfileInterpreter);
3707   NOT_PRODUCT(UNSUPPORTED_OPTION(TraceProfileInterpreter));
3708 #endif
3709 
3710 #ifndef TIERED
3711   // Tiered compilation is undefined.
3712   UNSUPPORTED_OPTION(TieredCompilation);
3713 #endif
3714 





3715 #if INCLUDE_JVMCI
3716   if (EnableJVMCI &&
3717       !create_numbered_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
3718     return JNI_ENOMEM;
3719   }
3720 #endif
3721 
3722   // If we are running in a headless jre, force java.awt.headless property
3723   // to be true unless the property has already been set.
3724   // Also allow the OS environment variable JAVA_AWT_HEADLESS to set headless state.
3725   if (os::is_headless_jre()) {
3726     const char* headless = Arguments::get_property("java.awt.headless");
3727     if (headless == NULL) {
3728       const char *headless_env = ::getenv("JAVA_AWT_HEADLESS");
3729       if (headless_env == NULL) {
3730         if (!add_property("java.awt.headless=true")) {
3731           return JNI_ENOMEM;
3732         }
3733       } else {
3734         char buffer[256];




3695     // Java heap and the code cache.
3696     FLAG_SET_DEFAULT(UseLargePages, false);
3697   }
3698 
3699 #elif defined(COMPILER2)
3700   if (!FLAG_IS_DEFAULT(OptoLoopAlignment) && FLAG_IS_DEFAULT(MaxLoopPad)) {
3701     FLAG_SET_DEFAULT(MaxLoopPad, OptoLoopAlignment-1);
3702   }
3703 #endif
3704 
3705 #if !defined(COMPILER2) && !INCLUDE_JVMCI
3706   UNSUPPORTED_OPTION(ProfileInterpreter);
3707   NOT_PRODUCT(UNSUPPORTED_OPTION(TraceProfileInterpreter));
3708 #endif
3709 
3710 #ifndef TIERED
3711   // Tiered compilation is undefined.
3712   UNSUPPORTED_OPTION(TieredCompilation);
3713 #endif
3714 
3715   if ((EnableMVT || EnableValhalla) &&
3716       !create_numbered_property("jdk.module.addmods", "jdk.incubator.mvt", addmods_count++)) {
3717     return JNI_ENOMEM;
3718   }
3719 
3720 #if INCLUDE_JVMCI
3721   if (EnableJVMCI &&
3722       !create_numbered_property("jdk.module.addmods", "jdk.internal.vm.ci", addmods_count++)) {
3723     return JNI_ENOMEM;
3724   }
3725 #endif
3726 
3727   // If we are running in a headless jre, force java.awt.headless property
3728   // to be true unless the property has already been set.
3729   // Also allow the OS environment variable JAVA_AWT_HEADLESS to set headless state.
3730   if (os::is_headless_jre()) {
3731     const char* headless = Arguments::get_property("java.awt.headless");
3732     if (headless == NULL) {
3733       const char *headless_env = ::getenv("JAVA_AWT_HEADLESS");
3734       if (headless_env == NULL) {
3735         if (!add_property("java.awt.headless=true")) {
3736           return JNI_ENOMEM;
3737         }
3738       } else {
3739         char buffer[256];


< prev index next >