1.1 --- a/src/share/vm/oops/method.cpp Mon Sep 17 12:57:58 2012 -0700 1.2 +++ b/src/share/vm/oops/method.cpp Mon Sep 17 17:02:10 2012 -0700 1.3 @@ -251,8 +251,12 @@ 1.4 1.5 1.6 int Method::bci_from(address bcp) const { 1.7 +#ifdef ASSERT 1.8 + { ResourceMark rm; 1.9 assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(), 1.10 err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string())); 1.11 + } 1.12 +#endif 1.13 return bcp - code_base(); 1.14 } 1.15