comparison src/share/vm/code/nmethod.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 f2e12eb74117
children e522a00b91aa 070d523b96a7
comparison
equal deleted inserted replaced
6939:c284cf4781f0 6940:18fb7da42534
1261 1261
1262 void nmethod::invalidate_osr_method() { 1262 void nmethod::invalidate_osr_method() {
1263 assert(_entry_bci != InvocationEntryBci, "wrong kind of nmethod"); 1263 assert(_entry_bci != InvocationEntryBci, "wrong kind of nmethod");
1264 // Remove from list of active nmethods 1264 // Remove from list of active nmethods
1265 if (method() != NULL) 1265 if (method() != NULL)
1266 InstanceKlass::cast(method()->method_holder())->remove_osr_nmethod(this); 1266 method()->method_holder()->remove_osr_nmethod(this);
1267 // Set entry as invalid 1267 // Set entry as invalid
1268 _entry_bci = InvalidOSREntryBci; 1268 _entry_bci = InvalidOSREntryBci;
1269 } 1269 }
1270 1270
1271 void nmethod::log_state_change() const { 1271 void nmethod::log_state_change() const {