summaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
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 b5399ad38..8dab2fc7a 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
}