diff options
author | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-10-08 21:52:03 +1300 |
---|---|---|
committer | Michael Hudson-Doyle <michael.hudson@canonical.com> | 2015-10-18 22:14:00 +0000 |
commit | a4855812e259f91914328659a37dc3a2582da7ba (patch) | |
tree | 69e99faa7dca898b98258f8307e09e202cdb85d3 /src/runtime/panic.go | |
parent | 45c06b27a44a65c219a7445278b129c868332a6c (diff) | |
download | go-git-a4855812e259f91914328659a37dc3a2582da7ba.tar.gz |
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/panic.go')
-rw-r--r-- | src/runtime/panic.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 320c174829..24431c86dc 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -531,8 +531,6 @@ func throw(s string) { //uint32 runtime·panicking; var paniclk mutex -const hasLinkRegister = GOARCH == "arm" || GOARCH == "arm64" || GOARCH == "ppc64" || GOARCH == "ppc64le" - // Unwind the stack after a deferred function calls recover // after a panic. Then arrange to continue running as though // the caller of the deferred function returned normally. |