comparison src/share/vm/code/dependencies.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 4735d2c84362
children bd7a7ce2e264 070d523b96a7
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
827 // Static methods don't override non-static so punt 827 // Static methods don't override non-static so punt
828 return true; 828 return true;
829 } 829 }
830 if ( !Dependencies::is_concrete_method(lm) 830 if ( !Dependencies::is_concrete_method(lm)
831 && !Dependencies::is_concrete_method(m) 831 && !Dependencies::is_concrete_method(m)
832 && Klass::cast(lm->method_holder())->is_subtype_of(m->method_holder())) 832 && lm->method_holder()->is_subtype_of(m->method_holder()))
833 // Method m is overridden by lm, but both are non-concrete. 833 // Method m is overridden by lm, but both are non-concrete.
834 return true; 834 return true;
835 } 835 }
836 ResourceMark rm; 836 ResourceMark rm;
837 tty->print_cr("Dependency method not found in the associated context:"); 837 tty->print_cr("Dependency method not found in the associated context:");