]> Cypherpunks repositories - gostls13.git/commit
cmd/pprof: make ObjAddr a no-op
authorMichael Pratt <mpratt@google.com>
Mon, 7 Jun 2021 17:28:09 +0000 (13:28 -0400)
committerMichael Pratt <mpratt@google.com>
Thu, 17 Jun 2021 14:53:37 +0000 (14:53 +0000)
commit4dede025507fe6476e9881b4b2bd773a3680d618
treefbf612eafd4b098be8fa7d9842617866cd65c9af
parent97cee43c93cfccded197cd281f0a5885cdb605b4
cmd/pprof: make ObjAddr a no-op

https://golang.org/cl/318049 replaced driver.ObjFile.Base with
driver.ObjFile.ObjAddr. We don't support shared libraries, so these
should be no-op, but CL 318049 accidentally failed to account from the
change in no-op behavior from returning 0 to passing through addr.

Fixes #46636

Change-Id: Iab82224c7db722a1e257ec6e305218e22114d0a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/325809
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/pprof/pprof.go
src/cmd/pprof/pprof_test.go [new file with mode: 0644]
src/cmd/pprof/testdata/cpu.go [new file with mode: 0644]