src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/runtime/arguments.cpp	Thu Jul 16 15:07:35 2015
--- new/src/share/vm/runtime/arguments.cpp	Thu Jul 16 15:07:33 2015

*** 786,822 **** --- 786,838 ---- void Arguments::print_on(outputStream* st) { st->print_cr("VM Arguments:"); if (num_jvm_flags() > 0) { st->print("jvm_flags: "); print_jvm_flags_on(st); + st->cr(); } if (num_jvm_args() > 0) { st->print("jvm_args: "); print_jvm_args_on(st); + st->cr(); } st->print_cr("java_command: %s", java_command() ? java_command() : "<unknown>"); if (_java_class_path != NULL) { char* path = _java_class_path->value(); st->print_cr("java_class_path (initial): %s", strlen(path) == 0 ? "<not set>" : path ); } st->print_cr("Launcher Type: %s", _sun_java_launcher); } + void Arguments::print_summary_on(outputStream* st) { + // Print the command line. Environment variables that are helpful for + // reproducing the problem are written later in the hs_err file. + st->print_raw("Command Line: "); + if (num_jvm_flags() > 0) { + print_jvm_flags_on(st); + } + if (num_jvm_args() > 0) { + print_jvm_args_on(st); + } + if (java_command() != NULL) { + st->print("%s", java_command()); + } + st->cr(); + } + void Arguments::print_jvm_flags_on(outputStream* st) { if (_num_jvm_flags > 0) { for (int i=0; i < _num_jvm_flags; i++) { st->print("%s ", _jvm_flags_array[i]); } st->cr(); } } void Arguments::print_jvm_args_on(outputStream* st) { if (_num_jvm_args > 0) { for (int i=0; i < _num_jvm_args; i++) { st->print("%s ", _jvm_args_array[i]); } st->cr(); } } bool Arguments::process_argument(const char* arg, jboolean ignore_unrecognized, Flag::Flags origin) {

src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File