Skip to content
Opensource internals
  • Posts

Pacing

How Go's GC Decides When to Collect: Heap Goal, Pacing and Mark Assist

Oct 21, 2026 16 min read Jay Hubbert

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 …

GoInternalsGarbage collectionPacingPerformance

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·