How Go's GC Decides When to Collect: Heap Goal, Pacing and Mark Assist
The Go pacer computes a heap goal from GOGC and the soft memory limit, triggers below it, dedicates 25% of GOMAXPROCS to marking, and makes mutators repay an assist debt as they …