GO LEARNING PATH · 5 LESSONS
Runtime and memory
Stacks, GC, goroutines, threads and diagnostic evidence.
Stacks, escape analysis and object lifetimes
Explain why returning a local address is safe and why allocation placement must be measured.
3 min · Worked lesson
What the garbage collector can and cannot free
Follow references from roots and distinguish unreachable objects from unwanted live data.
3 min · Worked lesson
GC cost, allocation rate and memory budgets
Distinguish reducing live data from tuning collection frequency and respect a container memory limit.
3 min · Worked lesson
Goroutines, OS threads and GOMAXPROCS
Explain concurrency versus parallel execution without assuming a goroutine is an OS thread.
3 min · Worked lesson
Find a leak by following evidence
Choose a heap profile, goroutine profile, CPU profile or trace to test a specific hypothesis.
3 min · Worked lesson