]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.3.html: contiguous stacks
authorRob Pike <r@golang.org>
Fri, 28 Mar 2014 01:55:37 +0000 (12:55 +1100)
committerRob Pike <r@golang.org>
Fri, 28 Mar 2014 01:55:37 +0000 (12:55 +1100)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/81650043

doc/go1.3.html

index 60861fb5472b3ce1d2f59230a699f1947e4ae60a..770d0cc06273fbd1a05699170f47fc6ddcfc5061 100644 (file)
@@ -59,7 +59,14 @@ This is not a language change, just a clarification about an expected property o
 <h3 id="stacks">Stack</h3>
 
 <p>
-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
+<a href="http://golang.org/s/contigstacks">design document</a>.
 </p>
 
 <h3 id="stack_size">Stack size</h3>