diff options
| author | Tolya Korniltsev <korniltsev.anatoly@gmail.com> | 2023-12-12 22:24:34 +0700 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2023-12-13 20:40:52 +0000 |
| commit | d95e25e83c922aa63fcb1f596d6bdf1786789edb (patch) | |
| tree | 307b081e699e0926c6ee1c96638941cb765b05ba /src/database/sql | |
| parent | cc5ccd71ef6df461fed01a91c18c5adde10ae2c8 (diff) | |
| download | go-d95e25e83c922aa63fcb1f596d6bdf1786789edb.tar.xz | |
runtime/pprof: fix inlined generics locations
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>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
