changeset 7359:6155ff53a422

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 351115afe32b
children a014a4dff55b
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 05 13:00:59 2014 -0800
+++ b/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/src/share/vm/classfile/dictionary.cpp	Wed Nov 05 13:00:59 2014 -0800
+++ 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 05 13:00:59 2014 -0800
+++ b/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();