runtime/pprof: incorrect locations for inlined generic functions #64641
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version devel go1.22-de5b418bea Sat Dec 2 03:15:03 2023 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
I produced a pprof profile with the following stacktrace
And
foo
andgeneric[a,b]
functions are inlined by the go compilerReproducer
More info: #64528 (comment)
What did you expect to see?
I expected to see a pprof
Location
with 3Line
for this case.What did you see instead?
Isee a pprof
Location
with 2Line
for this case. Onlyand then separate location for
I suspect this is because of this line , which checks for function names without generic shapes (
generic[...]
)go/src/runtime/pprof/proto.go
Line 564 in de5b418
The text was updated successfully, but these errors were encountered: