8268522: InstanceKlass::can_be_verified_at_dumptime() returns opposite value

Reviewed-by: dholmes, minqi, iklam
This commit is contained in:
Calvin Cheung 2021-06-14 15:02:55 +00:00
parent abe20c188c
commit c088d093e2
8 changed files with 25 additions and 25 deletions

View file

@ -1411,7 +1411,7 @@ bool SystemDictionaryShared::check_for_exclusion_impl(InstanceKlass* k) {
if (has_class_failed_verification(k)) {
return warn_excluded(k, "Failed verification");
} else {
if (!k->can_be_verified_at_dumptime()) {
if (k->can_be_verified_at_dumptime()) {
return warn_excluded(k, "Not linked");
}
}
@ -1425,7 +1425,7 @@ bool SystemDictionaryShared::check_for_exclusion_impl(InstanceKlass* k) {
return true;
}
if (k->can_be_verified_at_dumptime() && k->is_linked()) {
if (!k->can_be_verified_at_dumptime() && k->is_linked()) {
return warn_excluded(k, "Old class has been linked");
}