mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8231630: Optimize boot loader with no bootclasspath append entry
Optimize SystemDictionary::load_instance_class for boot loader. Immediately return NULL if the requested class is either in the unnamed package or unnamed module, or in a module not defined to the boot loader, when there is no bootclasspath append entry. Reviewed-by: martin, aeubanks, dthomson, redestad, lfoltan, iklam
This commit is contained in:
parent
67a0aa7960
commit
874037d252
2 changed files with 7 additions and 0 deletions
|
@ -237,6 +237,8 @@ class ClassLoader: AllStatic {
|
|||
CDS_ONLY(static ClassPathEntry* app_classpath_entries() {return _app_classpath_entries;})
|
||||
CDS_ONLY(static ClassPathEntry* module_path_entries() {return _module_path_entries;})
|
||||
|
||||
static bool has_bootclasspath_append() { return _first_append_entry != NULL; }
|
||||
|
||||
protected:
|
||||
// Initialization:
|
||||
// - setup the boot loader's system class path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue