changeset 6879:8ebcedb7604d

7053130: hs_err file does not record specified CLASSPATH Summary: Added code to write the value of the java.class.path property to the hs_err file. Reviewed-by: kmo, dholmes, kvn Contributed-by: harold.seigel@oracle.com
author coleenp
date Thu, 18 Oct 2012 13:09:47 -0400
parents 85916677fc22
children c7957b458bf8 716c64bda5ba
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu Oct 18 13:08:13 2012 -0400
+++ b/src/share/vm/runtime/arguments.cpp	Thu Oct 18 13:09:47 2012 -0400
@@ -791,6 +791,10 @@
     st->print("jvm_args: "); print_jvm_args_on(st);
   }
   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);
 }