Skip to content
Snippets Groups Projects
Commit 0320616d authored by zhangyunhao's avatar zhangyunhao Committed by Gopher Robot
Browse files

runtime: use .Pointers() instead of .PtrBytes != 0

Change-Id: I512808d3cf91466eb6f2c21b49b39ff2e08a9b8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/605498


Reviewed-by: default avatarCarlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: default avatarKeith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: default avatarKeith Randall <khr@google.com>
parent 818515fd
Branches
Tags
No related merge requests found
...@@ -205,7 +205,7 @@ func dumptype(t *_type) { ...@@ -205,7 +205,7 @@ func dumptype(t *_type) {
dwritebyte('.') dwritebyte('.')
dwrite(unsafe.Pointer(unsafe.StringData(name)), uintptr(len(name))) dwrite(unsafe.Pointer(unsafe.StringData(name)), uintptr(len(name)))
} }
dumpbool(t.Kind_&abi.KindDirectIface == 0 || t.PtrBytes != 0) dumpbool(t.Kind_&abi.KindDirectIface == 0 || t.Pointers())
} }
// dump an object. // dump an object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment