aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-06 21:16:13 -0400
committerRuss Cox <rsc@golang.org>2014-09-06 21:16:13 -0400
commitb6951bcc0bb081bdd46e3509bd5d4e2c1fa87323 (patch)
treee0889a5f4b958ec87bc482427deafb495ff9de71 /test/nosplit.go
parent7230db9ef8f0bcf69d5ca5743c2177e795f0cbe1 (diff)
downloadgo-b6951bcc0bb081bdd46e3509bd5d4e2c1fa87323.tar.gz
go-b6951bcc0bb081bdd46e3509bd5d4e2c1fa87323.zip
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
Diffstat (limited to 'test/nosplit.go')
-rw-r--r--test/nosplit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nosplit.go b/test/nosplit.go
index 3854f24203..c9d008acd3 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -256,11 +256,11 @@ TestCases:
name := m[1]
size, _ := strconv.Atoi(m[2])
- // The limit was originally 128 but is now 192.
+ // The limit was originally 128 but is now 384.
// Instead of rewriting the test cases above, adjust
// the first stack frame to use up the extra 32 bytes.
if i == 0 {
- size += 192 - 128
+ size += 384 - 128
}
if goarch == "amd64" && size%8 == 4 {