Skip to content

Commit 2826838

Browse files
committedDec 11, 2024
8345658: WB_NMTCommitMemory redundantly records an NMT tag
Reviewed-by: dholmes, jsjolen
1 parent c9ec271 commit 2826838

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/hotspot/share/prims/whitebox.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
#include "memory/resourceArea.hpp"
5959
#include "memory/universe.hpp"
6060
#include "nmt/mallocSiteTable.hpp"
61-
#include "nmt/memTracker.hpp"
6261
#include "oops/array.hpp"
6362
#include "oops/compressedOops.hpp"
6463
#include "oops/constantPool.inline.hpp"
@@ -720,7 +719,6 @@ WB_END
720719

721720
WB_ENTRY(void, WB_NMTCommitMemory(JNIEnv* env, jobject o, jlong addr, jlong size))
722721
os::commit_memory((char *)(uintptr_t)addr, size, !ExecMem);
723-
MemTracker::record_virtual_memory_tag((address)(uintptr_t)addr, mtTest);
724722
WB_END
725723

726724
WB_ENTRY(void, WB_NMTUncommitMemory(JNIEnv* env, jobject o, jlong addr, jlong size))

0 commit comments

Comments
 (0)
Please sign in to comment.