summaryrefslogtreecommitdiff
path: root/test/nosplit.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/nosplit.go')
-rw-r--r--test/nosplit.go13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/nosplit.go b/test/nosplit.go
index a695654eaf..2b1bb5492d 100644
--- a/test/nosplit.go
+++ b/test/nosplit.go
@@ -342,22 +342,15 @@ TestCases:
nosplit := m[3]
body := m[4]
- // The limit was originally 128 but is now 800 (928-128).
+ // The limit was originally 128 but is now 800.
// Instead of rewriting the test cases above, adjust
// the first nosplit frame to use up the extra bytes.
// This isn't exactly right because we could have
// nosplit -> split -> nosplit, but it's good enough.
if !adjusted && nosplit != "" {
+ const stackNosplitBase = 800 // internal/abi.StackNosplitBase
adjusted = true
- size += (928 - 128) - 128
- // Noopt builds have a larger stackguard.
- // See ../src/cmd/dist/buildruntime.go:stackGuardMultiplier
- // This increase is included in objabi.StackGuard
- for _, s := range strings.Split(os.Getenv("GO_GCFLAGS"), " ") {
- if s == "-N" {
- size += 928
- }
- }
+ size += stackNosplitBase - 128
}
if nosplit != "" {