diff options
| author | Austin Clements <austin@google.com> | 2023-04-17 16:50:00 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-21 19:28:49 +0000 |
| commit | 7843ca83e7c8229f4fdca22949428a2418f45138 (patch) | |
| tree | af287142e7909423c1e4ea9873c21b15f60aa06b /src/runtime/debugcall.go | |
| parent | 2668a190baa302a1fd7e22285cdb343af67530ad (diff) | |
| download | go-7843ca83e7c8229f4fdca22949428a2418f45138.tar.xz | |
internal/abi, runtime, cmd: merge PCDATA_* and FUNCDATA_* consts into internal/abi
We also rename the constants related to unsafe-points: currently, they
follow the same naming scheme as the PCDATA table indexes, but are not
PCDATA table indexes.
For #59670.
Change-Id: I06529fecfae535be5fe7d9ac56c886b9106c74fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/485497
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/debugcall.go')
| -rw-r--r-- | src/runtime/debugcall.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/runtime/debugcall.go b/src/runtime/debugcall.go index a4393b121a..fb96b41a3a 100644 --- a/src/runtime/debugcall.go +++ b/src/runtime/debugcall.go @@ -6,7 +6,10 @@ package runtime -import "unsafe" +import ( + "internal/abi" + "unsafe" +) const ( debugCallSystemStack = "executing on Go runtime stack" @@ -80,8 +83,8 @@ func debugCallCheck(pc uintptr) string { if pc != f.entry() { pc-- } - up := pcdatavalue(f, _PCDATA_UnsafePoint, pc, nil) - if up != _PCDATA_UnsafePointSafe { + up := pcdatavalue(f, abi.PCDATA_UnsafePoint, pc, nil) + if up != abi.UnsafePointSafe { // Not at a safe point. ret = debugCallUnsafePoint } |
