8242134: Consolidate the get_package_entry() in SystemDictionaryShared and ClassLoader

Keep the version in ClassLoader.

Reviewed-by: hseigel, redestad, lfoltan
This commit is contained in:
Calvin Cheung 2020-04-08 08:56:05 -07:00
parent 0ffbbc821a
commit dd4e04d6f5
4 changed files with 11 additions and 18 deletions

View file

@ -248,14 +248,6 @@ public:
PackageEntry* pkg_entry,
ModuleEntry* mod_entry,
TRAPS);
static PackageEntry* get_package_entry(Symbol* pkg,
ClassLoaderData *loader_data) {
if (loader_data != NULL) {
PackageEntryTable* pkgEntryTable = loader_data->packages();
return pkgEntryTable->lookup_only(pkg);
}
return NULL;
}
static bool add_unregistered_class(InstanceKlass* k, TRAPS);
static InstanceKlass* dump_time_resolve_super_or_fail(Symbol* child_name,