1
0
mirror of https://github.com/golang/go synced 2024-11-26 15:56:57 -07:00

doc/go1.3.html: contiguous stacks

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/81650043
This commit is contained in:
Rob Pike 2014-03-28 12:55:37 +11:00
parent 277a7b22f1
commit 610f395189

View 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>