Skip to content

Commit

Permalink
Clearing all cards for free regions (#77224)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung committed Oct 21, 2022
1 parent b4a3c68 commit 4708ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11271,7 +11271,7 @@ void gc_heap::clear_region_info (heap_segment* region)
clear_brick_table (heap_segment_mem (region), heap_segment_reserved (region));
}

// we should really clear cards as well!!
clear_card_for_addresses (get_region_start (region), heap_segment_reserved (region));

#ifdef BACKGROUND_GC
::record_changed_seg ((uint8_t*)region, heap_segment_reserved (region),
Expand Down Expand Up @@ -11709,7 +11709,7 @@ void gc_heap::clear_gen1_cards()
heap_segment* region = generation_start_segment (generation_of (1));
while (region)
{
clear_card_for_addresses (heap_segment_mem (region), heap_segment_allocated (region));
clear_card_for_addresses (get_region_start (region), heap_segment_reserved (region));
region = heap_segment_next (region);
}
#else //USE_REGIONS
Expand Down

0 comments on commit 4708ca8

Please sign in to comment.