8064375: Change certain errors to warnings in CDS output.

Mon, 10 Nov 2014 19:28:51 -0500

author
jiangli
date
Mon, 10 Nov 2014 19:28:51 -0500
changeset 7363
3375833a603e
parent 7362
10842d23f20a
child 7364
f84125b6f69a

8064375: Change certain errors to warnings in CDS output.
Summary: Change CDS non-fatal preloading errors to warnings.
Reviewed-by: minqi, mseledtsov, coleenp

src/share/vm/classfile/classLoader.cpp file | annotate | diff | comparison | revisions
src/share/vm/classfile/dictionary.cpp file | annotate | diff | comparison | revisions
src/share/vm/memory/metaspaceShared.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/classfile/classLoader.cpp	Wed Nov 12 13:12:35 2014 -0500
     1.2 +++ b/src/share/vm/classfile/classLoader.cpp	Mon Nov 10 19:28:51 2014 -0500
     1.3 @@ -1137,7 +1137,7 @@
     1.4      h = context.record_result(classpath_index, e, result, THREAD);
     1.5    } else {
     1.6      if (DumpSharedSpaces) {
     1.7 -      tty->print_cr("Preload Error: Cannot find %s", class_name);
     1.8 +      tty->print_cr("Preload Warning: Cannot find %s", class_name);
     1.9      }
    1.10    }
    1.11  
     2.1 --- a/src/share/vm/classfile/dictionary.cpp	Wed Nov 12 13:12:35 2014 -0500
     2.2 +++ b/src/share/vm/classfile/dictionary.cpp	Mon Nov 10 19:28:51 2014 -0500
     2.3 @@ -223,7 +223,7 @@
     2.4          }
     2.5          free_entry(probe);
     2.6          ResourceMark rm;
     2.7 -        tty->print_cr("Removed error class: %s", ik->external_name());
     2.8 +        tty->print_cr("Preload Warning: Removed error class: %s", ik->external_name());
     2.9          continue;
    2.10        }
    2.11  
     3.1 --- a/src/share/vm/memory/metaspaceShared.cpp	Wed Nov 12 13:12:35 2014 -0500
     3.2 +++ b/src/share/vm/memory/metaspaceShared.cpp	Mon Nov 10 19:28:51 2014 -0500
     3.3 @@ -851,7 +851,7 @@
     3.4      ik->link_class(THREAD);
     3.5      if (HAS_PENDING_EXCEPTION) {
     3.6        ResourceMark rm;
     3.7 -      tty->print_cr("Preload Error: Verification failed for %s",
     3.8 +      tty->print_cr("Preload Warning: Verification failed for %s",
     3.9                      ik->external_name());
    3.10        CLEAR_PENDING_EXCEPTION;
    3.11        ik->set_in_error_state();

mercurial