diff options
| author | Michael Pratt <mpratt@google.com> | 2024-09-16 15:58:36 -0400 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2024-09-17 17:01:20 +0000 |
| commit | 4f881115d4067bda8a236aabcae8c41cdd13b4d0 (patch) | |
| tree | 2249bfaec1950819e5e22184e61e60dcd076ae40 /src/runtime/export_windows_test.go | |
| parent | 41ca2637d4df8b8edf63436c6caab56821d2af38 (diff) | |
| download | go-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/export_windows_test.go')
| -rw-r--r-- | src/runtime/export_windows_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/export_windows_test.go b/src/runtime/export_windows_test.go index 6e98fe9789..13d30d4bc4 100644 --- a/src/runtime/export_windows_test.go +++ b/src/runtime/export_windows_test.go @@ -35,7 +35,7 @@ func (c ContextStub) GetPC() uintptr { func NewContextStub() *ContextStub { var ctx context ctx.set_ip(sys.GetCallerPC()) - ctx.set_sp(getcallersp()) + ctx.set_sp(sys.GetCallerSP()) ctx.set_fp(getcallerfp()) return &ContextStub{ctx} } |
