Repository navigation
Clearing all cards for free regions - #77224
Conversation
|
Tagging subscribers to this area: @dotnet/gc Issue DetailsThis change fixed two issues associated with card table clearing. When we return a region to the free region list, we can clear the cards. If we use Before these fixes, #76801 is always failing with After these fixes, the test case is still failing, but it is no longer failing for the same reason, in particular,
|
|
as we chatted about, let's change allocated to reserved. |
This change fixed two issues associated with card table clearing.
When we return a region to the free region list, we can clear the cards.
If we use
heap_segment_mem (region), this will always be 0x20 bytes after the start of the page. Thealign_on_cardlogic insideclear_card_for_addresseswill skip resetting the card for the first page.Before these fixes, #76801 is always failing with
*card_word == 1. This is because the initial card (i.e. the least significant bit) cannot be reset because of the alignment.After these fixes, the test case no longer fails locally after running for 4 hours in a loop.