4201 const JavaVMOption *option = args->options + index;
4202 if (match_option(option, "-XX:", &tail)) {
4203 logOption(tail);
4204 }
4205 }
4206 }
4207
4208 bool Arguments::handle_deprecated_print_gc_flags() {
4209 if (PrintGC) {
4210 log_warning(gc)("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead.");
4211 }
4212 if (PrintGCDetails) {
4213 log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.");
4214 }
4215
4216 if (_gc_log_filename != NULL) {
4217 // -Xloggc was used to specify a filename
4218 const char* gc_conf = PrintGCDetails ? "gc*" : "gc";
4219
4220 LogTarget(Error, logging) target;
4221 LogStreamCHeap errstream(target);
4222 return LogConfiguration::parse_log_arguments(_gc_log_filename, gc_conf, NULL, NULL, &errstream);
4223 } else if (PrintGC || PrintGCDetails) {
4224 LogConfiguration::configure_stdout(LogLevel::Info, !PrintGCDetails, LOG_TAGS(gc));
4225 }
4226 return true;
4227 }
4228
4229 void Arguments::handle_extra_cms_flags(const char* msg) {
4230 SpecialFlag flag;
4231 const char *flag_name = "UseConcMarkSweepGC";
4232 if (lookup_special_flag(flag_name, flag)) {
4233 handle_aliases_and_deprecation(flag_name, /* print warning */ true);
4234 warning("%s", msg);
4235 }
4236 }
4237
4238 // Parse entry point called from JNI_CreateJavaVM
4239
4240 jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
4241 assert(verify_special_jvm_flags(), "deprecated and obsolete flag table inconsistent");
|
4201 const JavaVMOption *option = args->options + index;
4202 if (match_option(option, "-XX:", &tail)) {
4203 logOption(tail);
4204 }
4205 }
4206 }
4207
4208 bool Arguments::handle_deprecated_print_gc_flags() {
4209 if (PrintGC) {
4210 log_warning(gc)("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead.");
4211 }
4212 if (PrintGCDetails) {
4213 log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.");
4214 }
4215
4216 if (_gc_log_filename != NULL) {
4217 // -Xloggc was used to specify a filename
4218 const char* gc_conf = PrintGCDetails ? "gc*" : "gc";
4219
4220 LogTarget(Error, logging) target;
4221 LogStream errstream(target);
4222 return LogConfiguration::parse_log_arguments(_gc_log_filename, gc_conf, NULL, NULL, &errstream);
4223 } else if (PrintGC || PrintGCDetails) {
4224 LogConfiguration::configure_stdout(LogLevel::Info, !PrintGCDetails, LOG_TAGS(gc));
4225 }
4226 return true;
4227 }
4228
4229 void Arguments::handle_extra_cms_flags(const char* msg) {
4230 SpecialFlag flag;
4231 const char *flag_name = "UseConcMarkSweepGC";
4232 if (lookup_special_flag(flag_name, flag)) {
4233 handle_aliases_and_deprecation(flag_name, /* print warning */ true);
4234 warning("%s", msg);
4235 }
4236 }
4237
4238 // Parse entry point called from JNI_CreateJavaVM
4239
4240 jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
4241 assert(verify_special_jvm_flags(), "deprecated and obsolete flag table inconsistent");
|