Part 8, the last, of a series on how Go manages the stack and the heap: one workload written in Go, C, C++, Rust, Java, C#, Python and Erlang, run on Ubuntu 20.04's own kernel. How long a sleeping thread waits while each …
Part 7 of a series on how Go manages the stack and the heap: the Go 1.15.1 runtime on Windows Server 2019. Reserve and commit instead of mmap, a gigabyte nobody writes counted against the commit limit, 4 MB heap arenas, …
Part 6 of a series on how Go manages the stack and the heap: Go 1.14's asynchronous preemption. A loop with no function calls holds a garbage collection off for 1.1 seconds on Go 1.13.9 and under a millisecond on Go …
Part 5 of a series on how Go manages the stack and the heap: how the Go runtime gives memory back to the operating system, and why top disagrees with it. One gigabyte freed by Go 1.11, 1.12 and 1.13 side by side on …
Part 4 of a series on how Go manages the stack and the heap: Go's garbage collector, concurrent, precise, non-moving and non-generational. Tri-colour marking and the hybrid write barrier, the barrier in the machine code, …
Part 3 of a series on how Go manages the stack and the heap: the allocator behind every escaping variable. Size classes measured from 17 bytes to 64 KB and set beside TCMalloc, jemalloc and glibc, the tiny allocator that …
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 …
Part 1 of a series on how Go manages the stack and the heap: goroutine stacks that start at 2 KB, the check at the top of every function, stacks that are copied to twice the size with every pointer into them rewritten, …