aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.go
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2015-10-08 21:52:03 +1300
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2015-10-18 22:14:00 +0000
commita4855812e259f91914328659a37dc3a2582da7ba (patch)
tree69e99faa7dca898b98258f8307e09e202cdb85d3 /src/runtime/stack.go
parent45c06b27a44a65c219a7445278b129c868332a6c (diff)
downloadgo-a4855812e259f91914328659a37dc3a2582da7ba.tar.xz
runtime: add a constant for the smallest possible stack frame
Shared libraries on ppc64le will require a larger minimum stack frame (because the ABI mandates that the TOC pointer is available at 24(R1)). So to prepare for this, make a constant for the fixed part of a stack and use that where necessary. Change-Id: I447949f4d725003bb82e7d2cf7991c1bca5aa887 Reviewed-on: https://go-review.googlesource.com/15523 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
-rw-r--r--src/runtime/stack.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go
index 24d37271b4..1809a4d9ac 100644
--- a/src/runtime/stack.go
+++ b/src/runtime/stack.go
@@ -578,12 +578,10 @@ func adjustframe(frame *stkframe, arg unsafe.Pointer) bool {
size := frame.varp - frame.sp
var minsize uintptr
switch thechar {
- case '6', '8':
- minsize = 0
case '7':
minsize = spAlign
default:
- minsize = ptrSize
+ minsize = minFrameSize
}
if size > minsize {
var bv bitvector