diff options
| author | David Chase <drchase@google.com> | 2023-04-25 19:14:05 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2023-05-11 13:45:40 +0000 |
| commit | 2e93fe0a9f55aaa2a762e7fb454d76b2ee3a4e4f (patch) | |
| tree | 6ad00fee3adb58714aa001ece696eeebeb2b5087 /src/runtime/heapdump.go | |
| parent | a2838ec5f20b56e94a18c873ab4b68397355e214 (diff) | |
| download | go-2e93fe0a9f55aaa2a762e7fb454d76b2ee3a4e4f.tar.xz | |
runtime: move per-type types to internal/abi
Change-Id: I1f031f0f83a94bebe41d3978a91a903dc5bcda66
Reviewed-on: https://go-review.googlesource.com/c/go/+/489276
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/heapdump.go')
| -rw-r--r-- | src/runtime/heapdump.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/heapdump.go b/src/runtime/heapdump.go index 6a042ea9cf..e3f801129e 100644 --- a/src/runtime/heapdump.go +++ b/src/runtime/heapdump.go @@ -195,10 +195,10 @@ func dumptype(t *_type) { dumpint(uint64(uintptr(unsafe.Pointer(t)))) dumpint(uint64(t.Size_)) rt := toRType(t) - if x := t.Uncommon(); x == nil || rt.nameOff(x.PkgPath).name() == "" { + if x := t.Uncommon(); x == nil || rt.nameOff(x.PkgPath).Name() == "" { dumpstr(rt.string()) } else { - pkgpath := rt.nameOff(x.PkgPath).name() + pkgpath := rt.nameOff(x.PkgPath).Name() name := rt.name() dumpint(uint64(uintptr(len(pkgpath)) + 1 + uintptr(len(name)))) dwrite(unsafe.Pointer(unsafe.StringData(pkgpath)), uintptr(len(pkgpath))) |
