mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
7197033: missing ResourceMark for assert in Method::bci_from()
Added missing ResourceMark. Reviewed-by: dholmes, coleenp, jmasa
This commit is contained in:
parent
b0d292378a
commit
45435c5485
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue