diff options
| author | qiulaidongfeng <2645477756@qq.com> | 2024-04-02 13:08:24 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-04-02 15:10:48 +0000 |
| commit | daaf1f222063174eb7f0938eee38f7f9f364263c (patch) | |
| tree | 4187c39caf622b61276555ab72ad00f1145ad280 /src/runtime/debuglog.go | |
| parent | e3ec1ca17e339e21ca50fbdb375b4294783bc385 (diff) | |
| download | go-daaf1f222063174eb7f0938eee38f7f9f364263c.tar.xz | |
all: use kind* of abi
For #59670
Change-Id: Id66e102f13e529dd041b68ce869026a56f0a1b9b
GitHub-Last-Rev: 43aa9376f72bc02a9d86518cdc99494a6b2f8573
GitHub-Pull-Request: golang/go#65564
Reviewed-on: https://go-review.googlesource.com/c/go/+/562298
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/debuglog.go')
| -rw-r--r-- | src/runtime/debuglog.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/debuglog.go b/src/runtime/debuglog.go index 545fde2b24..695cd204f5 100644 --- a/src/runtime/debuglog.go +++ b/src/runtime/debuglog.go @@ -16,6 +16,7 @@ package runtime import ( + "internal/abi" "internal/runtime/atomic" "runtime/internal/sys" "unsafe" @@ -277,8 +278,8 @@ func (l *dlogger) p(x any) *dlogger { l.w.uvarint(0) } else { v := efaceOf(&x) - switch v._type.Kind_ & kindMask { - case kindChan, kindFunc, kindMap, kindPtr, kindUnsafePointer: + switch v._type.Kind_ & abi.KindMask { + case abi.Chan, abi.Func, abi.Map, abi.Pointer, abi.UnsafePointer: l.w.uvarint(uint64(uintptr(v.data))) default: throw("not a pointer type") |
