Skip to content

Commit b6ff8fa

Browse files
committedSep 18, 2022
8292073: NMT: remove unused constructor parameter from MallocHeader
Reviewed-by: zgu
1 parent cfd44bb commit b6ff8fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/hotspot/share/services/mallocHeader.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class MallocHeader {
116116

117117
public:
118118

119-
inline MallocHeader(size_t size, MEMFLAGS flags, const NativeCallStack& stack, uint32_t mst_marker);
119+
inline MallocHeader(size_t size, MEMFLAGS flags, uint32_t mst_marker);
120120

121121
inline size_t size() const { return _size; }
122122
inline MEMFLAGS flags() const { return (MEMFLAGS)_flags; }

‎src/hotspot/share/services/mallocHeader.inline.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "utilities/macros.hpp"
3535
#include "utilities/nativeCallStack.hpp"
3636

37-
inline MallocHeader::MallocHeader(size_t size, MEMFLAGS flags, const NativeCallStack& stack, uint32_t mst_marker)
37+
inline MallocHeader::MallocHeader(size_t size, MEMFLAGS flags, uint32_t mst_marker)
3838
: _size(size), _mst_marker(mst_marker), _flags(NMTUtil::flag_to_index(flags)),
3939
_unused(0), _canary(_header_canary_life_mark)
4040
{

‎src/hotspot/share/services/mallocTracker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void* MallocTracker::record_malloc(void* malloc_base, size_t size, MEMFLAGS flag
174174
}
175175

176176
// Uses placement global new operator to initialize malloc header
177-
MallocHeader* const header = ::new (malloc_base)MallocHeader(size, flags, stack, mst_marker);
177+
MallocHeader* const header = ::new (malloc_base)MallocHeader(size, flags, mst_marker);
178178
void* const memblock = (void*)((char*)malloc_base + sizeof(MallocHeader));
179179

180180
// The alignment check: 8 bytes alignment for 32 bit systems.

0 commit comments

Comments
 (0)
Please sign in to comment.