Goroutine Stacks: Tiny Start, Dynamic Growth

Goroutines start with a minimal stack size, typically 2KB, and dynamically grow or shrink as needed, contrasting sharply with OS threads that often allocate fixed, larger stacks (e.g., 1MB) upfront, leading to significant memory savings.

Sources

Open the full topic