]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: fix pcDeck's frame indexing
authorRhys Hiltner <rhys@justin.tv>
Wed, 9 Mar 2022 15:56:04 +0000 (07:56 -0800)
committerMichael Pratt <mpratt@google.com>
Wed, 9 Mar 2022 17:07:49 +0000 (17:07 +0000)
commit0d33a9967540fe06f5ce7b14790e9be8da576936
tree33cb6450cde27b08650a806c1ab8dc32f00920c7
parent7160e3252991d9462ee3a155b5504c564a6cffe5
runtime/pprof: fix pcDeck's frame indexing

When building the inlining deck, correctly identify which is the last
frame in the deck. Otherwise, when some forms of inlining cause a PC to
expand to multiple frames, the length of the deck's two slices will
diverge.

Fixes #51567

Change-Id: I24e7ba32cb16b167f4307178b3f03c29e5362c4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/391134
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Than McIntosh <thanm@google.com>
src/runtime/pprof/proto.go