From 610f395189528d5eb6a9dde36e39314403d0b7a3 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Fri, 28 Mar 2014 12:55:37 +1100 Subject: [PATCH] doc/go1.3.html: contiguous stacks LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/81650043 --- doc/go1.3.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/go1.3.html b/doc/go1.3.html index 60861fb547..770d0cc062 100644 --- a/doc/go1.3.html +++ b/doc/go1.3.html @@ -59,7 +59,14 @@ This is not a language change, just a clarification about an expected property o

Stack

-TODO stack copying, no longer segmented +Go 1.3 has changed the implementation of goroutine stacks away from the old, +"segmented" model to a contiguous model. +When a goroutine needs more stack +than is available, its stack is transferred to a larger single block of memory. +The overhead of this transfer operation amortizes well and eliminates the old "hot spot" +problem when a calculation repeatedly steps across a segment boundary. +Details including performance numbers are in this +design document.

Stack size

-- 2.50.0