Go Runtime GC Deep Dive¶
Comprehensive analysis of Go's garbage collector implementation (Go 1.23.12), covering theory from source code to production tuning at scale.
Articles¶
Core GC Mechanisms¶
- GC Pacer - How GC decides when to trigger
- GC Sweep - Lazy sweep and bit flipping
- GC Mark - Concurrent marking and STW
- GC Mutator - Write barrier mechanics
Runtime Integration¶
- Allocation and GC - How allocation triggers GC
- Scavenging - Memory return to OS
- STW to Scan Stack - Stack scanning
Production Case Study¶
- GC Tuner Case Study - Large-scale tuning: 67 services, 49K instances, 1.11 PB memory