diff --git a/src/runtime/heapdump.go b/src/runtime/heapdump.go index 95fb62dc42..8f2ae34f4d 100644 --- a/src/runtime/heapdump.go +++ b/src/runtime/heapdump.go @@ -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.