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/cmd/internal/obj/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/cmd/internal/obj/stack.go')
| -rw-r--r-- | src/cmd/internal/obj/stack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/stack.go b/src/cmd/internal/obj/stack.go index 87698b3eeb..242e7b51c4 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*stackGuardMultiplier + StackSystem + StackGuard = 720*stackGuardMultiplier + StackSystem StackSmall = 128 StackLimit = StackGuard - StackSystem - StackSmall ) |
