8241815: Unnecessary calls to SystemDictionaryShared::define_shared_package

Avoid calling ClassLoaders.definePackage during loading of shared classes originated from the module image since java.lang.Package for named modules are automatically defined.

Reviewed-by: mchung, lfoltan
This commit is contained in:
Calvin Cheung 2020-04-28 00:09:53 +00:00
parent 03f8e6ccd8
commit 18c43241fb
4 changed files with 6 additions and 63 deletions

View file

@ -167,10 +167,6 @@ private:
Handle manifest,
Handle url,
TRAPS);
static void define_shared_package(Symbol* class_name,
Handle class_loader,
ModuleEntry* mod_entry,
TRAPS);
static Handle get_shared_jar_manifest(int shared_path_index, TRAPS);
static Handle get_shared_jar_url(int shared_path_index, TRAPS);