comparison src/share/vm/classfile/classFileParser.cpp @ 20415:47e3110c47e8

6642881: Improve performance of Class.getClassLoader() Summary: Add classLoader to java/lang/Class instance for fast access Reviewed-by: alanb, lfoltan, rriggs, vlivanov, twisti, jfranck
author coleenp
date Fri, 05 Sep 2014 16:01:29 -0400
parents 6e0cb14ce59b
children f0bedf980c65
comparison
equal deleted inserted replaced
20407:9be4ca335650 20415:47e3110c47e8
4136 check_illegal_static_method(this_klass, CHECK_(nullHandle)); 4136 check_illegal_static_method(this_klass, CHECK_(nullHandle));
4137 } 4137 }
4138 } 4138 }
4139 4139
4140 // Allocate mirror and initialize static fields 4140 // Allocate mirror and initialize static fields
4141 java_lang_Class::create_mirror(this_klass, protection_domain, CHECK_(nullHandle)); 4141 java_lang_Class::create_mirror(this_klass, class_loader, protection_domain,
4142 4142 CHECK_(nullHandle));
4143 4143
4144 // Generate any default methods - default methods are interface methods 4144 // Generate any default methods - default methods are interface methods
4145 // that have a default implementation. This is new with Lambda project. 4145 // that have a default implementation. This is new with Lambda project.
4146 if (has_default_methods ) { 4146 if (has_default_methods ) {
4147 DefaultMethods::generate_default_methods( 4147 DefaultMethods::generate_default_methods(