diff options
author | Russ Cox <rsc@golang.org> | 2014-05-20 00:30:46 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-05-20 00:30:46 -0400 |
commit | 65c2fd0e9e25859d1c6f2c415022756251443207 (patch) | |
tree | 87b82e612d2910d15d44269d6e9f4725825486bc /doc | |
parent | 17b0ba22ea66c4217bef7e9460d7a7d73e8e0173 (diff) | |
download | go-65c2fd0e9e25859d1c6f2c415022756251443207.tar.gz |
runtime: switch default stack size back to 8kB
The move from 4kB to 8kB in Go 1.2 was to eliminate many stack split hot spots.
The move back to 4kB was predicated on copying stacks eliminating
the potential for hot spots.
Unfortunately, the fact that stacks do not copy 100% of the time means
that hot spots can still happen under the right conditions, and the slowdown
is worse now than it was in Go 1.2. There is a real program in issue 8030 that
sees about a 30x slowdown: it has a reflect call near the top of the stack
which inhibits any stack copying on that segment.
Go back to 8kB until stack copying can be used 100% of the time.
Fixes issue 8030.
LGTM=khr, dave, iant
R=iant, khr, r, bradfitz, dave
CC=golang-codereviews
https://codereview.appspot.com/92540043
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.3.html | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/doc/go1.3.html b/doc/go1.3.html index fa9e3f778..5404f4ec6 100644 --- a/doc/go1.3.html +++ b/doc/go1.3.html @@ -118,13 +118,6 @@ 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> - -<p> -Go 1.2 increased the minimum stack size to 8 kilobytes; with the new stack model, it has been -put back to 4 kilobytes. -</p> - <h3 id="garbage_collector">Changes to the garbage collector</h3> <p> |