The Compiler Decides What Escapes
Part 2 of a series on how Go manages the stack and the heap: escape analysis, the compiler pass that decides whether a variable lives in a stack frame or on the heap. Reading its decisions with -gcflags=-m, fourteen …
Escape-Analysis