diff options
| author | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-10-30 12:47:24 +1300 |
|---|---|---|
| committer | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-11-12 22:32:16 +0000 |
| commit | c1b6e392f56a35d4e59e1e938c68e4c5db4fd919 (patch) | |
| tree | ef57a86df60f521b95bbf6009659644482ef20ed /src/runtime/stack.go | |
| parent | c3ba74931fe7770f011d114b1174875edebe8059 (diff) | |
| download | go-c1b6e392f56a35d4e59e1e938c68e4c5db4fd919.tar.xz | |
cmd/internal/obj, cmd/link, runtime: increase stack limit to accommodate larger frames on ppc64x
Larger stack frames mean nosplit functions use more stack and so the limit
needs to increase.
The change to test/nosplit.go is a bit ugly but I can't really think of a
way to make it nicer.
Change-Id: I2616b58015f0b62abbd62951575fcd0d2d8643c2
Reviewed-on: https://go-review.googlesource.com/16504
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
| -rw-r--r-- | src/runtime/stack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go index db25636885..00cd6aeb1d 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -90,7 +90,7 @@ const ( // The stack guard is a pointer this many bytes above the // bottom of the stack. - _StackGuard = 640*sys.StackGuardMultiplier + _StackSystem + _StackGuard = 720*sys.StackGuardMultiplier + _StackSystem // After a stack split check the SP is allowed to be this // many bytes below the stack guard. This saves an instruction |
