mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8240590: Add MemRegion::destroy_array to complement introduced create_array
Reviewed-by: lkorinth, sjohanss
This commit is contained in:
parent
e7204cbc52
commit
cc83c45595
5 changed files with 21 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue