]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: use .Pointers() instead of .PtrBytes != 0
authorzhangyunhao <zhangyunhao116@gmail.com>
Thu, 15 Aug 2024 10:04:00 +0000 (10:04 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 16 Aug 2024 14:47:36 +0000 (14:47 +0000)
Change-Id: I512808d3cf91466eb6f2c21b49b39ff2e08a9b8c
Reviewed-on: https://go-review.googlesource.com/c/go/+/605498
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/runtime/heapdump.go

index 95fb62dc425cda9ed042f3a52c725c3f9d9ad947..8f2ae34f4da3170cf176997902eb8744328d4344 100644 (file)
@@ -205,7 +205,7 @@ func dumptype(t *_type) {
                dwritebyte('.')
                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.