aboutsummaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-10-22 11:21:16 -0400
committerAustin Clements <austin@google.com>2014-10-22 11:21:16 -0400
commit32082501859c5c3c61913df5791cafbbb45c2519 (patch)
tree365cfa998cf0ef09335922c75b50009b315ca8e9 /test/nosplit.go
parent04d5796b2988a20175b8cb03eb7080cf4cca2179 (diff)
parent36ca636fab865cb8d5d01927d274ed54153c4e73 (diff)
downloadgo-32082501859c5c3c61913df5791cafbbb45c2519.tar.gz
go-32082501859c5c3c61913df5791cafbbb45c2519.zip
[dev.power64] build: merge default into dev.power64
LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/160200044
Diffstat (limited to 'test/nosplit.go')
-rw-r--r--test/nosplit.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/nosplit.go b/test/nosplit.go
index b5399ad38d..8dab2fc7a7 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -251,7 +251,7 @@ TestCases:
if line == "" {
continue
}
- for _, subline := range strings.Split(line, ";") {
+ for i, subline := range strings.Split(line, ";") {
subline = strings.TrimSpace(subline)
if subline == "" {
continue
@@ -264,6 +264,14 @@ TestCases:
}
name := m[1]
size, _ := strconv.Atoi(m[2])
+
+ // 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 += 384 - 128
+ }
+
if size%ptrSize == 4 {
continue TestCases
}