提交 22596dd1 编写于 作者: K kvn

7197033: missing ResourceMark for assert in Method::bci_from()

Summary: Added missing ResourceMark.
Reviewed-by: dholmes, coleenp, jmasa
上级 975dadf1
......@@ -251,8 +251,12 @@ void Method::mask_for(int bci, InterpreterOopMap* mask) {
int Method::bci_from(address bcp) const {
#ifdef ASSERT
{ ResourceMark rm;
assert(is_native() && bcp == code_base() || contains(bcp) || is_error_reported(),
err_msg("bcp doesn't belong to this method: bcp: " INTPTR_FORMAT ", method: %s", bcp, name_and_sig_as_C_string()));
}
#endif
return bcp - code_base();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册