comparison src/share/vm/ci/ciEnv.cpp @ 6940:18fb7da42534

8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu Contributed-by: harold.seigel@oracle.com
author coleenp
date Tue, 06 Nov 2012 15:09:37 -0500
parents d804e148cff8
children e522a00b91aa bd7a7ce2e264 070d523b96a7
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
766 if (holder_is_accessible) { // Our declared holder is loaded. 766 if (holder_is_accessible) { // Our declared holder is loaded.
767 InstanceKlass* lookup = declared_holder->get_instanceKlass(); 767 InstanceKlass* lookup = declared_holder->get_instanceKlass();
768 Method* m = lookup_method(accessor->get_instanceKlass(), lookup, name_sym, sig_sym, bc); 768 Method* m = lookup_method(accessor->get_instanceKlass(), lookup, name_sym, sig_sym, bc);
769 if (m != NULL && 769 if (m != NULL &&
770 (bc == Bytecodes::_invokestatic 770 (bc == Bytecodes::_invokestatic
771 ? InstanceKlass::cast(m->method_holder())->is_not_initialized() 771 ? m->method_holder()->is_not_initialized()
772 : !InstanceKlass::cast(m->method_holder())->is_loaded())) { 772 : !m->method_holder()->is_loaded())) {
773 m = NULL; 773 m = NULL;
774 } 774 }
775 if (m != NULL) { 775 if (m != NULL) {
776 // We found the method. 776 // We found the method.
777 return get_method(m); 777 return get_method(m);
1054 tty->print_cr("Installing osr method (%d) %s @ %d", 1054 tty->print_cr("Installing osr method (%d) %s @ %d",
1055 comp_level, 1055 comp_level,
1056 method_name, 1056 method_name,
1057 entry_bci); 1057 entry_bci);
1058 } 1058 }
1059 InstanceKlass::cast(method->method_holder())->add_osr_nmethod(nm); 1059 method->method_holder()->add_osr_nmethod(nm);
1060 1060
1061 } 1061 }
1062 } 1062 }
1063 } 1063 }
1064 // JVMTI -- compiled method notification (must be done outside lock) 1064 // JVMTI -- compiled method notification (must be done outside lock)