Skip to content

Commit

Permalink
counting the LOH pad objects in the free object space (#56665)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maoni0 committed Aug 2, 2021
1 parent faa0559 commit 4e05e94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15047,6 +15047,7 @@ BOOL gc_heap::a_fit_free_list_uoh_p (size_t size,
if (loh_pad)
{
make_unused_array (free_list, loh_pad);
generation_free_obj_space (gen) += loh_pad;
limit -= loh_pad;
free_list += loh_pad;
free_list_size -= loh_pad;
Expand Down Expand Up @@ -15185,6 +15186,7 @@ BOOL gc_heap::a_fit_segment_end_p (int gen_number,
if (gen_number == loh_generation)
{
make_unused_array (allocated, loh_pad);
generation_free_obj_space (generation_of (gen_number)) += loh_pad;
allocated += loh_pad;
limit -= loh_pad;
}
Expand Down

0 comments on commit 4e05e94

Please sign in to comment.