mirror of https://github.com/golang/go.git
When generic function[a,b] is inlined to the same generic function[b,a] with different types (not recursion) it is expected to get a pprof with a single Location with two functions. However due to incorrect check for generics names using runtime.Frame.Function, the profileBuilder assumes it is a recursion and emits separate Location. This change fixes the recursion check for generics functions by using runtime_expandFinalInlineFrame Fixes #64641 Change-Id: I3f58818f08ee322b281daa377fa421555ad328c9 Reviewed-on: https://go-review.googlesource.com/c/go/+/549135 Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> |
||
|---|---|---|
| .. | ||
| testdata | ||
| defs_darwin.go | ||
| defs_darwin_amd64.go | ||
| defs_darwin_arm64.go | ||
| elf.go | ||
| label.go | ||
| label_test.go | ||
| map.go | ||
| mprof_test.go | ||
| pe.go | ||
| pprof.go | ||
| pprof_norusage.go | ||
| pprof_rusage.go | ||
| pprof_test.go | ||
| pprof_windows.go | ||
| proto.go | ||
| proto_darwin.go | ||
| proto_other.go | ||
| proto_test.go | ||
| proto_windows.go | ||
| protobuf.go | ||
| protomem.go | ||
| protomem_test.go | ||
| runtime.go | ||
| runtime_test.go | ||
| rusage_test.go | ||
| vminfo_darwin.go | ||
| vminfo_darwin_test.go | ||