Skip to content

Commit 0041da9

Browse files
authored
Make sure the initial mark list size is capped (#76083)
1 parent fa9668a commit 0041da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13738,7 +13738,7 @@ gc_heap::init_semi_shared()
1373813738
}
1373913739
#else //MULTIPLE_HEAPS
1374013740

13741-
mark_list_size = max (8192, soh_segment_size/(64*32));
13741+
mark_list_size = min(100*1024, max (8192, soh_segment_size/(64*32)));
1374213742
g_mark_list = make_mark_list (mark_list_size);
1374313743

1374413744
#endif //MULTIPLE_HEAPS

0 commit comments

Comments
 (0)