aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-02-25 11:40:51 -0800
committerKeith Randall <khr@golang.org>2016-02-25 22:32:48 +0000
commitd3f15ff6bc353d94b7249f33bb030ee1f7ee887e (patch)
tree36909234198dae0452d9b7590e9ae60208af2c9d /test/nosplit.go
parent378a86368279ffdfecc50e91c4bcb61e72957d21 (diff)
downloadgo-d3f15ff6bc353d94b7249f33bb030ee1f7ee887e.tar.gz
go-d3f15ff6bc353d94b7249f33bb030ee1f7ee887e.zip
[dev.ssa] cmd/compile: shrink stack guard
Our stack frame sizes look pretty good now. Lower the stack guard from 1024 to 720. Tip is currently using 720. We could go lower (to 640 at least) except PPC doesn't like that. Change-Id: Ie5f96c0e822435638223f1e8a2bd1a1eed68e6aa Reviewed-on: https://go-review.googlesource.com/19922 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
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 2bf7077808..082fc3b0e6 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -302,13 +302,13 @@ TestCases:
// Instead of rewriting the test cases above, adjust
// the first stack frame to use up the extra bytes.
if i == 0 {
- size += (1024 - 128) - 128
+ size += (720 - 128) - 128
// Noopt builds have a larger stackguard.
// See ../src/cmd/dist/buildruntime.go:stackGuardMultiplier
// This increase is included in obj.StackGuard
for _, s := range strings.Split(os.Getenv("GO_GCFLAGS"), " ") {
if s == "-N" {
- size += 1024
+ size += 720
}
}
}