4248 const JavaVMOption *option = args->options + index;
4249 if (match_option(option, "-XX:", &tail)) {
4250 logOption(tail);
4251 }
4252 }
4253 }
4254
4255 bool Arguments::handle_deprecated_print_gc_flags() {
4256 if (PrintGC) {
4257 log_warning(gc)("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead.");
4258 }
4259 if (PrintGCDetails) {
4260 log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.");
4261 }
4262
4263 if (_gc_log_filename != NULL) {
4264 // -Xloggc was used to specify a filename
4265 const char* gc_conf = PrintGCDetails ? "gc*" : "gc";
4266
4267 LogTarget(Error, logging) target;
4268 LogStreamCHeap errstream(target);
4269 return LogConfiguration::parse_log_arguments(_gc_log_filename, gc_conf, NULL, NULL, &errstream);
4270 } else if (PrintGC || PrintGCDetails) {
4271 LogConfiguration::configure_stdout(LogLevel::Info, !PrintGCDetails, LOG_TAGS(gc));
4272 }
4273 return true;
4274 }
4275
4276 void Arguments::handle_extra_cms_flags(const char* msg) {
4277 SpecialFlag flag;
4278 const char *flag_name = "UseConcMarkSweepGC";
4279 if (lookup_special_flag(flag_name, flag)) {
4280 handle_aliases_and_deprecation(flag_name, /* print warning */ true);
4281 warning("%s", msg);
4282 }
4283 }
4284
4285 // Parse entry point called from JNI_CreateJavaVM
4286
4287 jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
4288 assert(verify_special_jvm_flags(), "deprecated and obsolete flag table inconsistent");
|
4248 const JavaVMOption *option = args->options + index;
4249 if (match_option(option, "-XX:", &tail)) {
4250 logOption(tail);
4251 }
4252 }
4253 }
4254
4255 bool Arguments::handle_deprecated_print_gc_flags() {
4256 if (PrintGC) {
4257 log_warning(gc)("-XX:+PrintGC is deprecated. Will use -Xlog:gc instead.");
4258 }
4259 if (PrintGCDetails) {
4260 log_warning(gc)("-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.");
4261 }
4262
4263 if (_gc_log_filename != NULL) {
4264 // -Xloggc was used to specify a filename
4265 const char* gc_conf = PrintGCDetails ? "gc*" : "gc";
4266
4267 LogTarget(Error, logging) target;
4268 LogStream errstream(target);
4269 return LogConfiguration::parse_log_arguments(_gc_log_filename, gc_conf, NULL, NULL, &errstream);
4270 } else if (PrintGC || PrintGCDetails) {
4271 LogConfiguration::configure_stdout(LogLevel::Info, !PrintGCDetails, LOG_TAGS(gc));
4272 }
4273 return true;
4274 }
4275
4276 void Arguments::handle_extra_cms_flags(const char* msg) {
4277 SpecialFlag flag;
4278 const char *flag_name = "UseConcMarkSweepGC";
4279 if (lookup_special_flag(flag_name, flag)) {
4280 handle_aliases_and_deprecation(flag_name, /* print warning */ true);
4281 warning("%s", msg);
4282 }
4283 }
4284
4285 // Parse entry point called from JNI_CreateJavaVM
4286
4287 jint Arguments::parse(const JavaVMInitArgs* initial_cmd_args) {
4288 assert(verify_special_jvm_flags(), "deprecated and obsolete flag table inconsistent");
|