diff 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
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp	Fri Sep 05 00:28:43 2014 +0200
+++ b/src/share/vm/classfile/classFileParser.cpp	Fri Sep 05 16:01:29 2014 -0400
@@ -4138,8 +4138,8 @@
     }
 
     // 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.