aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/stack.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2015-04-30 16:57:23 -0700
committerKeith Randall <khr@golang.org>2015-05-01 15:41:55 +0000
commita55b131393bfc2b0107806edd22c4dd704d96197 (patch)
tree32dc80e8b6a1750615bc5d65870d16139b5ce5cc /src/cmd/internal/obj/stack.go
parent7fbb1b36c37ac49db78042adc7533fb4ab83a4bc (diff)
downloadgo-a55b131393bfc2b0107806edd22c4dd704d96197.tar.xz
cmd/dist, runtime: Make stack guard larger for non-optimized builds
Kind of a hack, but makes the non-optimized builds pass. Fixes #10079 Change-Id: I26f41c546867f8f3f16d953dc043e784768f2aff Reviewed-on: https://go-review.googlesource.com/9552 Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/internal/obj/stack.go')
-rw-r--r--src/cmd/internal/obj/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/stack.go b/src/cmd/internal/obj/stack.go
index 9324ef6d1b..87698b3eeb 100644
--- a/src/cmd/internal/obj/stack.go
+++ b/src/cmd/internal/obj/stack.go
@@ -41,7 +41,7 @@ const (
STACKSYSTEM = 0
StackSystem = STACKSYSTEM
StackBig = 4096
- StackGuard = 640 + StackSystem
+ StackGuard = 640*stackGuardMultiplier + StackSystem
StackSmall = 128
StackLimit = StackGuard - StackSystem - StackSmall
)