diff options
| author | Keith Randall <khr@golang.org> | 2025-10-07 07:58:50 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-10-07 08:21:14 -0700 |
| commit | c938051dd0b80a5c60572d6807270d06ca685d2e (patch) | |
| tree | c4e69ab40d336c192c7cb7ec0a5f50ed54f97d80 /src/runtime/panic.go | |
| parent | 64699542031b994ec4fdb6de887a94b69a372f9b (diff) | |
| download | go-c938051dd0b80a5c60572d6807270d06ca685d2e.tar.xz | |
Revert "cmd/compile: redo arm64 LR/FP save and restore"
This reverts commit 719dfcf8a8478d70360bf3c34c0e920be7b32994.
Reason for revert: Causing crashes.
Change-Id: I0b8526dd03d82fa074ce4f97f1789eeac702b3eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/709755
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/panic.go')
| -rw-r--r-- | src/runtime/panic.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 04b3afe168..8c91c9435a 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -1379,10 +1379,10 @@ func recovery(gp *g) { // the caller gp.sched.bp = fp - 2*goarch.PtrSize case goarch.IsArm64 != 0: - // on arm64, the first two words of the frame are caller's PC - // (the saved LR register) and the caller's BP. - // Coincidentally, the same as amd64. - gp.sched.bp = fp - 2*goarch.PtrSize + // on arm64, the architectural bp points one word higher + // than the sp. fp is totally useless to us here, because it + // only gets us to the caller's fp. + gp.sched.bp = sp - goarch.PtrSize } gogo(&gp.sched) } |
