From ff8cc268fdaaf85299c94088a226b73e7eaf6bdb Mon Sep 17 00:00:00 2001 From: Gui Cao Date: Thu, 18 Jan 2024 02:28:54 +0000 Subject: [PATCH] 8323694: RISC-V: Unnecessary ResourceMark in NativeCall::set_destination_mt_safe Reviewed-by: fyang, rehn --- src/hotspot/cpu/riscv/nativeInst_riscv.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hotspot/cpu/riscv/nativeInst_riscv.cpp b/src/hotspot/cpu/riscv/nativeInst_riscv.cpp index c29ac1a04fa..c4048f66e0d 100644 --- a/src/hotspot/cpu/riscv/nativeInst_riscv.cpp +++ b/src/hotspot/cpu/riscv/nativeInst_riscv.cpp @@ -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");