From f99ad11dd11a4d83e5227b246866822e69b38ae7 Mon Sep 17 00:00:00 2001 From: quadhier Date: Mon, 22 May 2023 16:51:20 +0000 Subject: [PATCH] 8302218: CHeapBitMap::free frees with incorrect size Reviewed-by: aboldtch, iklam, tschatzl --- src/hotspot/share/utilities/bitMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/utilities/bitMap.cpp b/src/hotspot/share/utilities/bitMap.cpp index 19ee77508c9..5ab586debd9 100644 --- a/src/hotspot/share/utilities/bitMap.cpp +++ b/src/hotspot/share/utilities/bitMap.cpp @@ -131,7 +131,7 @@ CHeapBitMap::CHeapBitMap(idx_t size_in_bits, MEMFLAGS flags, bool clear) } CHeapBitMap::~CHeapBitMap() { - free(map(), size()); + free(map(), size_in_words()); } bm_word_t* CHeapBitMap::allocate(idx_t size_in_words) const {