aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stubs_arm.go
diff options
context:
space:
mode:
authorFelix Geisendörfer <felix.geisendoerfer@datadoghq.com>2023-04-04 01:10:55 +0200
committerQuim Muntal <quimmuntal@gmail.com>2023-05-22 10:04:13 +0000
commit3afbca5c5ff91b1b577b77cde6aecbfaac5881e5 (patch)
tree621cb0af9014ee68d13afad4642b311ca054dc42 /src/runtime/stubs_arm.go
parentd75cc4b9c6e2acb4d0ed3d90c9a8b38094af281b (diff)
downloadgo-3afbca5c5ff91b1b577b77cde6aecbfaac5881e5.tar.xz
runtime: rename getcallerfp to getfp
The previous name was wrong due to the mistaken assumption that calling f->g->getcallerpc and f->g->getcallersp would respectively return the pc/sp at g. However, they are actually referring to their caller's caller, i.e. f. Rename getcallerfp to getfp in order to stay consistent with this naming convention. Also see discussion on CL 463835. For #16638 This is a redo of CL 481617 that became necessary because CL 461738 added another call site for getcallerfp(). Change-Id: If0b536e85a6c26061b65e7b5c2859fc31385d025 Reviewed-on: https://go-review.googlesource.com/c/go/+/494857 Reviewed-by: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Felix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Diffstat (limited to 'src/runtime/stubs_arm.go')
-rw-r--r--src/runtime/stubs_arm.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/stubs_arm.go b/src/runtime/stubs_arm.go
index be40a2b06a..e19f1a87b2 100644
--- a/src/runtime/stubs_arm.go
+++ b/src/runtime/stubs_arm.go
@@ -24,5 +24,6 @@ func read_tls_fallback()
//go:noescape
func asmcgocall_no_g(fn, arg unsafe.Pointer)
-// getcallerfp returns the address of the frame pointer in the callers frame or 0 if not implemented.
-func getcallerfp() uintptr { return 0 }
+// getfp returns the frame pointer register of its caller or 0 if not implemented.
+// TODO: Make this a compiler intrinsic
+func getfp() uintptr { return 0 }