diff options
| author | Jes Cok <xigua67damn@gmail.com> | 2025-07-28 11:36:17 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-07-28 11:13:58 -0700 |
| commit | e151db3e065eea8a13fd2bc83aafb6959edd6fca (patch) | |
| tree | 5cddf59378c70f7589e724c7493c404903afe9b8 /src/runtime/heapdump.go | |
| parent | 4569255f8ce8ee744e34e44465444d6d58d349de (diff) | |
| download | go-e151db3e065eea8a13fd2bc83aafb6959edd6fca.tar.xz | |
all: omit unnecessary type conversions
Found by github.com/mdempsky/unconvert
Change-Id: Ib78cceb718146509d96dbb6da87b27dbaeba1306
GitHub-Last-Rev: dedf354811701ce8920c305b6f7aa78914a4171c
GitHub-Pull-Request: golang/go#74771
Reviewed-on: https://go-review.googlesource.com/c/go/+/690735
Reviewed-by: Mark Freeman <mark@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@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 5476035b2e..72878d0728 100644 --- a/src/runtime/heapdump.go +++ b/src/runtime/heapdump.go @@ -460,7 +460,7 @@ func dumproots() { continue } spf := (*specialfinalizer)(unsafe.Pointer(sp)) - p := unsafe.Pointer(s.base() + uintptr(spf.special.offset)) + p := unsafe.Pointer(s.base() + spf.special.offset) dumpfinalizer(p, spf.fn, spf.fint, spf.ot) } } @@ -659,7 +659,7 @@ func dumpmemprof() { continue } spp := (*specialprofile)(unsafe.Pointer(sp)) - p := s.base() + uintptr(spp.special.offset) + p := s.base() + spp.special.offset dumpint(tagAllocSample) dumpint(uint64(p)) dumpint(uint64(uintptr(unsafe.Pointer(spp.b)))) |
