mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6642881: Improve performance of Class.getClassLoader()
Add classLoader to java/lang/Class instance for fast access Reviewed-by: alanb, lfoltan, rriggs, vlivanov, twisti, jfranck
This commit is contained in:
parent
243d697d71
commit
d8ce93cea5
7 changed files with 46 additions and 8 deletions
|
@ -4139,8 +4139,8 @@ instanceKlassHandle ClassFileParser::parseClassFile(Symbol* name,
|
|||
}
|
||||
|
||||
// Allocate mirror and initialize static fields
|
||||
java_lang_Class::create_mirror(this_klass, protection_domain, CHECK_(nullHandle));
|
||||
|
||||
java_lang_Class::create_mirror(this_klass, class_loader, protection_domain,
|
||||
CHECK_(nullHandle));
|
||||
|
||||
// Generate any default methods - default methods are interface methods
|
||||
// that have a default implementation. This is new with Lambda project.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue