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