comparison src/share/vm/classfile/vmSymbols.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 65d07d9ee446
children f2aebc22372a
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
505 return vmIntrinsics::_none; 505 return vmIntrinsics::_none;
506 #undef VM_INTRINSIC_MATCH 506 #undef VM_INTRINSIC_MATCH
507 } 507 }
508 508
509 void vmIntrinsics::verify_method(ID actual_id, Method* m) { 509 void vmIntrinsics::verify_method(ID actual_id, Method* m) {
510 Symbol* mk = Klass::cast(m->method_holder())->name(); 510 Symbol* mk = m->method_holder()->name();
511 ID declared_id = match_method_with_klass(m, mk); 511 ID declared_id = match_method_with_klass(m, mk);
512 512
513 if (declared_id == actual_id) return; // success 513 if (declared_id == actual_id) return; // success
514 514
515 if (declared_id == _none && actual_id != _none && mk == vmSymbols::java_lang_StrictMath()) { 515 if (declared_id == _none && actual_id != _none && mk == vmSymbols::java_lang_StrictMath()) {