comparison src/share/vm/oops/method.cpp @ 6791:8d3cc6612bd1

7197033: missing ResourceMark for assert in Method::bci_from() Summary: Added missing ResourceMark. Reviewed-by: dholmes, coleenp, jmasa
author kvn
date Mon, 17 Sep 2012 17:02:10 -0700
parents aed758eda82a
children 9191895df19d
comparison
equal deleted inserted replaced
6790:2cb2f30450c7 6791:8d3cc6612bd1
249 return; 249 return;
250 } 250 }
251 251
252 252
253 int Method::bci_from(address bcp) const { 253 int Method::bci_from(address bcp) const {
254 #ifdef ASSERT
255 { ResourceMark rm;
254 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), 256 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(),
255 err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string())); 257 err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string()));
258 }
259 #endif
256 return bcp - code_base(); 260 return bcp - code_base();
257 } 261 }
258 262
259 263
260 // Return (int)bcx if it appears to be a valid BCI. 264 // Return (int)bcx if it appears to be a valid BCI.