8064375: Change certain errors to warnings in CDS output.
authorjiangli
Mon, 10 Nov 2014 19:28:51 -0500
changeset 27618 790a8bf5488b
parent 27473 07948a5f8f5c
child 27619 72646ac2d0d3
8064375: Change certain errors to warnings in CDS output. Summary: Change CDS non-fatal preloading errors to warnings. Reviewed-by: minqi, mseledtsov, coleenp
hotspot/src/share/vm/classfile/classLoader.cpp
hotspot/src/share/vm/classfile/dictionary.cpp
hotspot/src/share/vm/memory/metaspaceShared.cpp
--- a/hotspot/src/share/vm/classfile/classLoader.cpp	Wed Nov 05 13:00:59 2014 -0800
+++ b/hotspot/src/share/vm/classfile/classLoader.cpp	Mon Nov 10 19:28:51 2014 -0500
@@ -1120,7 +1120,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/hotspot/src/share/vm/classfile/dictionary.cpp	Wed Nov 05 13:00:59 2014 -0800
+++ b/hotspot/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/hotspot/src/share/vm/memory/metaspaceShared.cpp	Wed Nov 05 13:00:59 2014 -0800
+++ b/hotspot/src/share/vm/memory/metaspaceShared.cpp	Mon Nov 10 19:28:51 2014 -0500
@@ -846,7 +846,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();