aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debugcall.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2024-09-16 15:58:36 -0400
committerMichael Pratt <mpratt@google.com>2024-09-17 17:01:20 +0000
commit4f881115d4067bda8a236aabcae8c41cdd13b4d0 (patch)
tree2249bfaec1950819e5e22184e61e60dcd076ae40 /src/runtime/debugcall.go
parent41ca2637d4df8b8edf63436c6caab56821d2af38 (diff)
downloadgo-4f881115d4067bda8a236aabcae8c41cdd13b4d0.tar.xz
runtime: move getcallersp to internal/runtime/sys
Moving these intrinsics to a base package enables other internal/runtime packages to use them. For #54766. Change-Id: I45a530422207dd94b5ad4eee51216c9410a84040 Reviewed-on: https://go-review.googlesource.com/c/go/+/613261 Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/debugcall.go')
-rw-r--r--src/runtime/debugcall.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/debugcall.go b/src/runtime/debugcall.go
index 8d0174e6ae..e6554475c0 100644
--- a/src/runtime/debugcall.go
+++ b/src/runtime/debugcall.go
@@ -35,7 +35,7 @@ func debugCallCheck(pc uintptr) string {
if getg() != getg().m.curg {
return debugCallSystemStack
}
- if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
+ if sp := sys.GetCallerSP(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
// Fast syscalls (nanotime) and racecall switch to the
// g0 stack without switching g. We can't safely make
// a call in this state. (We can't even safely