Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip frozen segments for commit accounting #75738

Merged
merged 1 commit into from
Sep 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30488,7 +30488,10 @@ void gc_heap::plan_phase (int condemned_gen_number)
heap_segment* region = generation_start_segment (hp->generation_of (i));
while (region)
{
committed += heap_segment_committed (region) - get_region_start (region);
if (!heap_segment_read_only_p (region))
{
committed += heap_segment_committed (region) - get_region_start (region);
}
region = heap_segment_next (region);
}

Expand Down Expand Up @@ -43917,7 +43920,10 @@ void gc_heap::verify_regions (int gen_number, bool can_verify_gen_num, bool can_
{
if (p_total_committed)
{
*p_total_committed += (heap_segment_committed (seg_in_gen) - get_region_start (seg_in_gen));
if (!heap_segment_read_only_p (seg_in_gen))
{
*p_total_committed += (heap_segment_committed (seg_in_gen) - get_region_start (seg_in_gen));
}
}
if (can_verify_gen_num)
{
Expand Down