8266822: Rename MetaspaceShared::is_old_class to be more explicit about what "old" means

Reviewed-by: iklam, minqi, coleenp
This commit is contained in:
Calvin Cheung 2021-05-11 23:53:06 +00:00
parent 616244f43a
commit 57c6ba6e6b
7 changed files with 32 additions and 31 deletions

View file

@ -1382,7 +1382,7 @@ bool SystemDictionaryShared::should_be_excluded(InstanceKlass* k) {
warn_excluded(k, "Failed verification");
return true;
} else {
if (!MetaspaceShared::is_old_class(k)) {
if (!k->has_old_class_version()) {
warn_excluded(k, "Not linked");
return true;
}
@ -1397,7 +1397,7 @@ bool SystemDictionaryShared::should_be_excluded(InstanceKlass* k) {
return true;
}
if (MetaspaceShared::is_old_class(k) && k->is_linked()) {
if (k->has_old_class_version() && k->is_linked()) {
warn_excluded(k, "Old class has been linked");
return true;
}