Skip to content

Commit

Permalink
Make sure the initial mark list size is capped (dotnet#76083)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung authored Oct 5, 2022
1 parent fa9668a commit 0041da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13738,7 +13738,7 @@ gc_heap::init_semi_shared()
}
#else //MULTIPLE_HEAPS

mark_list_size = max (8192, soh_segment_size/(64*32));
mark_list_size = min(100*1024, max (8192, soh_segment_size/(64*32)));
g_mark_list = make_mark_list (mark_list_size);

#endif //MULTIPLE_HEAPS
Expand Down

0 comments on commit 0041da9

Please sign in to comment.