comparison 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
comparison
equal deleted inserted replaced
20407:9be4ca335650 20415:47e3110c47e8
525 525
526 // Recreate the class mirror. 526 // Recreate the class mirror.
527 // Only recreate it if not present. A previous attempt to restore may have 527 // Only recreate it if not present. A previous attempt to restore may have
528 // gotten an OOM later but keep the mirror if it was created. 528 // gotten an OOM later but keep the mirror if it was created.
529 if (java_mirror() == NULL) { 529 if (java_mirror() == NULL) {
530 java_lang_Class::create_mirror(this, protection_domain, CHECK); 530 java_lang_Class::create_mirror(this, class_loader(), protection_domain, CHECK);
531 } 531 }
532 } 532 }
533 533
534 Klass* Klass::array_klass_or_null(int rank) { 534 Klass* Klass::array_klass_or_null(int rank) {
535 EXCEPTION_MARK; 535 EXCEPTION_MARK;