mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8176472: Lazily create ModuleEntryTable
Moved the unnamed module out of the ModuleEntryTable and into the ClassLoaderData so that the MET can be lazily created only when other modules are present. Also a smaller PackageTable size. Reviewed-by: gtriantafill, hseigel, lfoltan, coleenp
This commit is contained in:
parent
2327609d91
commit
ca72444bf9
9 changed files with 112 additions and 57 deletions
|
@ -2863,7 +2863,7 @@ ModuleEntry* java_lang_reflect_Module::module_entry(oop module, TRAPS) {
|
|||
oop loader = java_lang_reflect_Module::loader(module);
|
||||
Handle h_loader = Handle(THREAD, loader);
|
||||
ClassLoaderData* loader_cld = SystemDictionary::register_loader(h_loader, CHECK_NULL);
|
||||
return loader_cld->modules()->unnamed_module();
|
||||
return loader_cld->unnamed_module();
|
||||
}
|
||||
return module_entry;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue