← Course map

GO LEARNING PATH · 5 LESSONS

Runtime and memory

Stacks, GC, goroutines, threads and diagnostic evidence.

  1. 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

  2. What the garbage collector can and cannot free

    Follow references from roots and distinguish unreachable objects from unwanted live data.

    3 min · Worked lesson

  3. 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

  4. Goroutines, OS threads and GOMAXPROCS

    Explain concurrency versus parallel execution without assuming a goroutine is an OS thread.

    3 min · Worked lesson

  5. 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