Skip to content

Commit

Permalink
8302218: CHeapBitMap::free frees with incorrect size
Browse files Browse the repository at this point in the history
Reviewed-by: aboldtch, iklam, tschatzl
  • Loading branch information
quadhier authored and iklam committed May 22, 2023
1 parent d77a410 commit f99ad11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/bitMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

1 comment on commit f99ad11

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.