Skip to content

Commit

Permalink
8296504: Memory leak in G1PLABAllocator::PLABData
Browse files Browse the repository at this point in the history
Co-authored-by: Justin King <jcking@google.com>
Reviewed-by: kbarrett, tschatzl
  • Loading branch information
Man Cao and jcking committed Nov 8, 2022
1 parent dd5d4df commit 0ee25de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/gc/g1/g1Allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ G1PLABAllocator::PLABData::~PLABData() {
for (uint node_index = 0; node_index < _num_alloc_buffers; node_index++) {
delete _alloc_buffer[node_index];
}
FREE_C_HEAP_ARRAY(PLAB*, _alloc_buffer);
}

void G1PLABAllocator::PLABData::initialize(uint num_alloc_buffers, size_t desired_plab_size, size_t tolerated_refills) {
Expand Down

1 comment on commit 0ee25de

@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.