< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page




4048       warning("UseCounterDecay disabled because CountCalls is set");
4049       UseCounterDecay = false;
4050     }
4051   }
4052 #endif // PRODUCT
4053 
4054   if (ScavengeRootsInCode == 0) {
4055     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
4056       warning("Forcing ScavengeRootsInCode non-zero");
4057     }
4058     ScavengeRootsInCode = 1;
4059   }
4060 
4061   if (!handle_deprecated_print_gc_flags()) {
4062     return JNI_EINVAL;
4063   }
4064 
4065   // Set object alignment values.
4066   set_object_alignment();
4067 
4068 #if !INCLUDE_CDS






4069   if (DumpSharedSpaces || RequireSharedSpaces) {
4070     jio_fprintf(defaultStream::error_stream(),
4071       "Shared spaces are not supported in this VM\n");
4072     return JNI_ERR;
4073   }
4074   if (DumpLoadedClassList != NULL) {
4075     jio_fprintf(defaultStream::error_stream(),
4076       "DumpLoadedClassList is not supported in this VM\n");
4077     return JNI_ERR;
4078   }
4079   if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) ||
4080       log_is_enabled(Info, cds)) {
4081     warning("Shared spaces are not supported in this VM");
4082     FLAG_SET_DEFAULT(UseSharedSpaces, false);
4083     LogConfiguration::configure_stdout(LogLevel::Off, true, LOG_TAGS(cds));
4084   }
4085   no_shared_spaces("CDS Disabled");
4086 #endif // INCLUDE_CDS
4087 
4088 #ifndef TIERED




4048       warning("UseCounterDecay disabled because CountCalls is set");
4049       UseCounterDecay = false;
4050     }
4051   }
4052 #endif // PRODUCT
4053 
4054   if (ScavengeRootsInCode == 0) {
4055     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
4056       warning("Forcing ScavengeRootsInCode non-zero");
4057     }
4058     ScavengeRootsInCode = 1;
4059   }
4060 
4061   if (!handle_deprecated_print_gc_flags()) {
4062     return JNI_EINVAL;
4063   }
4064 
4065   // Set object alignment values.
4066   set_object_alignment();
4067 
4068 #if INCLUDE_CDS
4069   if (DumpLoadedClassList != NULL) {
4070     if (!add_property("java.lang.invoke.MethodHandle.CDS_TRACE_RESOLVE=true")) {
4071       return JNI_ENOMEM;
4072     }
4073   }
4074 # else // !INCLUDE_CDS
4075   if (DumpSharedSpaces || RequireSharedSpaces) {
4076     jio_fprintf(defaultStream::error_stream(),
4077       "Shared spaces are not supported in this VM\n");
4078     return JNI_ERR;
4079   }
4080   if (DumpLoadedClassList != NULL) {
4081     jio_fprintf(defaultStream::error_stream(),
4082       "DumpLoadedClassList is not supported in this VM\n");
4083     return JNI_ERR;
4084   }
4085   if ((UseSharedSpaces && FLAG_IS_CMDLINE(UseSharedSpaces)) ||
4086       log_is_enabled(Info, cds)) {
4087     warning("Shared spaces are not supported in this VM");
4088     FLAG_SET_DEFAULT(UseSharedSpaces, false);
4089     LogConfiguration::configure_stdout(LogLevel::Off, true, LOG_TAGS(cds));
4090   }
4091   no_shared_spaces("CDS Disabled");
4092 #endif // INCLUDE_CDS
4093 
4094 #ifndef TIERED


< prev index next >