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:
parent
7a414a2c7d
commit
4f4c4bbd5c
@ -1120,7 +1120,7 @@ instanceKlassHandle ClassLoader::load_classfile(Symbol* h_name, TRAPS) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -223,7 +223,7 @@ void Dictionary::remove_classes_in_error_state() {
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -846,7 +846,7 @@ bool MetaspaceShared::try_link_class(InstanceKlass* ik, TRAPS) {
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user