Skip to content

Draft: rts: Track root evacuation statistics

Ben Gamari requested to merge wip/gc/root-evac-stats into master

When diagnosing concurrent GC pauses it can often be useful to know how many GC roots we get from various sources. Consequently, track this information in each GC thread and emit eventlog events if ROOT_EVAC_STATS is #define'd.

To keep track of root evacuations mark_root() bumps a counter in gc_thread, which gets zero'd after we finish evacuating each class of roots. We also bump the counter in markWeakPtrList(), since this codepath doesn't use mark_root().

Merge request reports