Mercurial > hg > graal-compiler
diff src/share/vm/oops/klass.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/oops/klass.cpp Fri Sep 05 00:28:43 2014 +0200 +++ b/src/share/vm/oops/klass.cpp Fri Sep 05 16:01:29 2014 -0400 @@ -527,7 +527,7 @@ // Only recreate it if not present. A previous attempt to restore may have // gotten an OOM later but keep the mirror if it was created. if (java_mirror() == NULL) { - java_lang_Class::create_mirror(this, protection_domain, CHECK); + java_lang_Class::create_mirror(this, class_loader(), protection_domain, CHECK); } }