changeset 6905:3375833a603e

8064375: Change certain errors to warnings in CDS output. Summary: Change CDS non-fatal preloading errors to warnings. Reviewed-by: minqi, mseledtsov, coleenp
author jiangli
date Mon, 10 Nov 2014 19:28:51 -0500
parents 10842d23f20a
children f84125b6f69a
files src/share/vm/classfile/classLoader.cpp src/share/vm/classfile/dictionary.cpp src/share/vm/memory/metaspaceShared.cpp
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/classLoader.cpp	Wed Nov 12 13:12:35 2014 -0500
+++ b/src/share/vm/classfile/classLoader.cpp	Mon Nov 10 19:28:51 2014 -0500
@@ -1137,7 +1137,7 @@
     h = context.record_result(classpath_index, e, result, THREAD);
   } else {
     if (DumpSharedSpaces) {
-      tty->print_cr("Preload Error: Cannot find %s", class_name);
+      tty->print_cr("Preload Warning: Cannot find %s", class_name);
     }
   }
 
--- a/src/share/vm/classfile/dictionary.cpp	Wed Nov 12 13:12:35 2014 -0500
+++ b/src/share/vm/classfile/dictionary.cpp	Mon Nov 10 19:28:51 2014 -0500
@@ -223,7 +223,7 @@
         }
         free_entry(probe);
         ResourceMark rm;
-        tty->print_cr("Removed error class: %s", ik->external_name());
+        tty->print_cr("Preload Warning: Removed error class: %s", ik->external_name());
         continue;
       }
 
--- a/src/share/vm/memory/metaspaceShared.cpp	Wed Nov 12 13:12:35 2014 -0500
+++ b/src/share/vm/memory/metaspaceShared.cpp	Mon Nov 10 19:28:51 2014 -0500
@@ -851,7 +851,7 @@
     ik->link_class(THREAD);
     if (HAS_PENDING_EXCEPTION) {
       ResourceMark rm;
-      tty->print_cr("Preload Error: Verification failed for %s",
+      tty->print_cr("Preload Warning: Verification failed for %s",
                     ik->external_name());
       CLEAR_PENDING_EXCEPTION;
       ik->set_in_error_state();