diff options
| author | Keith Randall <khr@golang.org> | 2015-04-30 16:57:23 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2015-05-01 15:41:55 +0000 |
| commit | a55b131393bfc2b0107806edd22c4dd704d96197 (patch) | |
| tree | 32dc80e8b6a1750615bc5d65870d16139b5ce5cc /src/runtime/stack2.go | |
| parent | 7fbb1b36c37ac49db78042adc7533fb4ab83a4bc (diff) | |
| download | go-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/runtime/stack2.go')
| -rw-r--r-- | src/runtime/stack2.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack2.go b/src/runtime/stack2.go index 07a7d38f0c..5ec8d8d060 100644 --- a/src/runtime/stack2.go +++ b/src/runtime/stack2.go @@ -84,7 +84,7 @@ const ( // The stack guard is a pointer this many bytes above the // bottom of the stack. - _StackGuard = 640 + _StackSystem + _StackGuard = 640*stackGuardMultiplier + _StackSystem // After a stack split check the SP is allowed to be this // many bytes below the stack guard. This saves an instruction |
