8064375: Change certain errors to warnings in CDS output

Change CDS non-fatal preloading errors to warnings.

Reviewed-by: minqi, mseledtsov, coleenp
This commit is contained in:
Jiangli Zhou 2014-11-10 19:28:51 -05:00
parent 7a414a2c7d
commit 4f4c4bbd5c
3 changed files with 3 additions and 3 deletions

View File

@ -1120,7 +1120,7 @@ instanceKlassHandle ClassLoader::load_classfile(Symbol* h_name, TRAPS) {
h = context.record_result(classpath_index, e, result, THREAD); h = context.record_result(classpath_index, e, result, THREAD);
} else { } else {
if (DumpSharedSpaces) { if (DumpSharedSpaces) {
tty->print_cr("Preload Error: Cannot find %s", class_name); tty->print_cr("Preload Warning: Cannot find %s", class_name);
} }
} }

View File

@ -223,7 +223,7 @@ void Dictionary::remove_classes_in_error_state() {
} }
free_entry(probe); free_entry(probe);
ResourceMark rm; 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; continue;
} }

View File

@ -846,7 +846,7 @@ bool MetaspaceShared::try_link_class(InstanceKlass* ik, TRAPS) {
ik->link_class(THREAD); ik->link_class(THREAD);
if (HAS_PENDING_EXCEPTION) { if (HAS_PENDING_EXCEPTION) {
ResourceMark rm; ResourceMark rm;
tty->print_cr("Preload Error: Verification failed for %s", tty->print_cr("Preload Warning: Verification failed for %s",
ik->external_name()); ik->external_name());
CLEAR_PENDING_EXCEPTION; CLEAR_PENDING_EXCEPTION;
ik->set_in_error_state(); ik->set_in_error_state();