Month 2-Memory, the Garbage Collector, and Interface Internals¶
Goal: by the end of week 8 you can (a) read a pprof heap profile and explain why an object is retained, (b) describe the tricolor mark-sweep algorithm including write barriers and the mark assist, (c) predict from a type signature whether method calls will allocate, and (d) tune GOGC and GOMEMLIMIT for a real workload.
Weeks¶
- Week 5 - Memory Layout, Padding, Alignment
- Week 6 - The Garbage Collector
- Week 7 - Interface Values, itabs, and Dispatch Cost
- Week 8 - Allocation Profiling,
sync.Pool, GC Tuning