8231275: Remove null check in the beginning of SystemDictionary::load_shared_class()

Reviewed-by: ccheung, coleenp
This commit is contained in:
Ioi Lam 2019-09-22 17:17:58 -07:00
parent 9c92ecba04
commit b18626ae7a

View file

@ -1268,8 +1268,7 @@ InstanceKlass* SystemDictionary::load_shared_class(InstanceKlass* ik,
Handle protection_domain,
const ClassFileStream *cfs,
TRAPS) {
if (ik != NULL) {
assert(ik != NULL, "sanity");
assert(!ik->is_unshareable_info_restored(), "shared class can be loaded only once");
Symbol* class_name = ik->name();
@ -1378,7 +1377,7 @@ InstanceKlass* SystemDictionary::load_shared_class(InstanceKlass* ik,
log_info(class, fingerprint)("%s : expected = " PTR64_FORMAT " actual = " PTR64_FORMAT, ik->external_name(), aot_fp, cds_fp);
}
}
}
return ik;
}
#endif // INCLUDE_CDS