8323694: RISC-V: Unnecessary ResourceMark in NativeCall::set_destination_mt_safe

Reviewed-by: fyang, rehn
This commit is contained in:
Gui Cao 2024-01-18 02:28:54 +00:00 committed by Fei Yang
parent dadd9cd1e8
commit ff8cc268fd

View File

@ -27,7 +27,6 @@
#include "precompiled.hpp"
#include "asm/macroAssembler.hpp"
#include "code/compiledIC.hpp"
#include "memory/resourceArea.hpp"
#include "nativeInst_riscv.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.hpp"
@ -157,7 +156,6 @@ void NativeCall::set_destination_mt_safe(address dest, bool assert_lock) {
CompiledICLocker::is_safe(addr_at(0)),
"concurrent code patching");
ResourceMark rm;
address addr_call = addr_at(0);
assert(NativeCall::is_call_at(addr_call), "unexpected code at call site");