Commit 0d33a996 authored by Rhys Hiltner's avatar Rhys Hiltner Committed by Michael Pratt
Browse files

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: default avatarMichael Pratt <mpratt@google.com>
Trust: Than McIntosh <thanm@google.com>
parent 7160e325
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment