src/share/vm/oops/methodOop.cpp

changeset 1161
be93aad57795
parent 1145
e5b0439ef4ae
child 1291
75596850f863
equal deleted inserted replaced
1160:928912ce8438 1161:be93aad57795
159 return; 159 return;
160 } 160 }
161 161
162 162
163 int methodOopDesc::bci_from(address bcp) const { 163 int methodOopDesc::bci_from(address bcp) const {
164 assert(is_native() && bcp == code_base() || contains(bcp), "bcp doesn't belong to this method"); 164 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), "bcp doesn't belong to this method");
165 return bcp - code_base(); 165 return bcp - code_base();
166 } 166 }
167 167
168 168
169 // Return (int)bcx if it appears to be a valid BCI. 169 // Return (int)bcx if it appears to be a valid BCI.

mercurial