]> Cypherpunks repositories - gostls13.git/commit
runtime: increase stack split limit again
authorRuss Cox <rsc@golang.org>
Sun, 7 Sep 2014 01:16:13 +0000 (21:16 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 7 Sep 2014 01:16:13 +0000 (21:16 -0400)
commitb6951bcc0bb081bdd46e3509bd5d4e2c1fa87323
treee0889a5f4b958ec87bc482427deafb495ff9de71
parent7230db9ef8f0bcf69d5ca5743c2177e795f0cbe1
runtime: increase stack split limit again

Increase NOSPLIT reservation from 192 to 384 bytes.
The problem is that the non-Unix systems (Solaris and Windows)
just can't make system calls in a small amount of space,
and then worse they do things that are complex enough
to warrant calling runtime.throw on failure.
We don't have time to rewrite the code to use less stack.

I'm not happy about this, but it's still a small amount.

The good news is that we're doing this to get to only
using copying stacks for stack growth. Once that is true,
we can drop the default stack size from 8k to 4k, which
should more than make up for the bytes we're losing here.

LGTM=r
R=iant, r, bradfitz, aram.h
CC=golang-codereviews
https://golang.org/cl/140350043
src/pkg/runtime/stack.go
src/pkg/runtime/stack.h
test/nosplit.go