8240590: Add MemRegion::destroy_array to complement introduced create_array

Reviewed-by: lkorinth, sjohanss
This commit is contained in:
Thomas Schatzl 2020-03-20 11:17:45 +01:00
parent e7204cbc52
commit cc83c45595
5 changed files with 21 additions and 9 deletions

View file

@ -62,8 +62,8 @@ CardTable::CardTable(MemRegion whole_heap, bool conc_scan) :
}
CardTable::~CardTable() {
FREE_C_HEAP_ARRAY(MemRegion, _covered);
FREE_C_HEAP_ARRAY(MemRegion, _committed);
MemRegion::destroy_array(_covered, _max_covered_regions);
MemRegion::destroy_array(_committed, _max_covered_regions);
}
void CardTable::initialize() {