Skip to content

Commit cb64fe6

Browse files
authored
Move the logic to grow the mark list outside of #ifdef GC_CONFIG_DRIVEN. (#56451)
I put it there by mistake, and didn't notice because for coreclr.dll, GC_CONFIG_DRIVEN is enabled. For clrgc.dll it is not, and when I did perf experiments with regions, I noticed that sometimes we would take very long in plan_phase.
1 parent bf83d79 commit cb64fe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/coreclr/gc/gc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43760,14 +43760,14 @@ void gc_heap::do_post_gc()
4376043760
record_interesting_info_per_heap();
4376143761
#endif //MULTIPLE_HEAPS
4376243762

43763+
record_global_mechanisms();
43764+
#endif //GC_CONFIG_DRIVEN
43765+
4376343766
if (mark_list_overflow)
4376443767
{
4376543768
grow_mark_list();
4376643769
mark_list_overflow = false;
4376743770
}
43768-
43769-
record_global_mechanisms();
43770-
#endif //GC_CONFIG_DRIVEN
4377143771
}
4377243772

4377343773
unsigned GCHeap::GetGcCount()

0 commit comments

Comments
 (0)