Skip to content

Commit ff8cc26

Browse files
zifeihanRealFYang
authored andcommitted
8323694: RISC-V: Unnecessary ResourceMark in NativeCall::set_destination_mt_safe
Reviewed-by: fyang, rehn
1 parent dadd9cd commit ff8cc26

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/hotspot/cpu/riscv/nativeInst_riscv.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "precompiled.hpp"
2828
#include "asm/macroAssembler.hpp"
2929
#include "code/compiledIC.hpp"
30-
#include "memory/resourceArea.hpp"
3130
#include "nativeInst_riscv.hpp"
3231
#include "oops/oop.inline.hpp"
3332
#include "runtime/handles.hpp"
@@ -157,7 +156,6 @@ void NativeCall::set_destination_mt_safe(address dest, bool assert_lock) {
157156
CompiledICLocker::is_safe(addr_at(0)),
158157
"concurrent code patching");
159158

160-
ResourceMark rm;
161159
address addr_call = addr_at(0);
162160
assert(NativeCall::is_call_at(addr_call), "unexpected code at call site");
163161

0 commit comments

Comments
 (0)