Skip to content

Commit f99ad11

Browse files
quadhieriklam
authored andcommitted
8302218: CHeapBitMap::free frees with incorrect size
Reviewed-by: aboldtch, iklam, tschatzl
1 parent d77a410 commit f99ad11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/utilities/bitMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ CHeapBitMap::CHeapBitMap(idx_t size_in_bits, MEMFLAGS flags, bool clear)
131131
}
132132

133133
CHeapBitMap::~CHeapBitMap() {
134-
free(map(), size());
134+
free(map(), size_in_words());
135135
}
136136

137137
bm_word_t* CHeapBitMap::allocate(idx_t size_in_words) const {

0 commit comments

Comments
 (0)