2 ms·
The Go GC and the JVM GCs are built within very, very different constraints. Since most short-lived allocations in Go are stack-allocated, the cost of adding a
by jashmatthews 6y ago
The Go GC and the JVM GCs are built within very, very different constraints.
Since most short-lived allocations in Go are stack-allocated, the cost of adding a read-barrier and branching on every heap access is more expensive than the potential gain from bump-pointer allocation.