]> Cypherpunks repositories - gostls13.git/commit
runtime: store start PC in pcvalueCache
authorAustin Clements <austin@google.com>
Tue, 1 Aug 2023 17:45:31 +0000 (13:45 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 7 Aug 2023 19:31:22 +0000 (19:31 +0000)
commit6be2639aff73389fce845cd7a6d1c568a5ef5625
treeb0d1727f88b83cca397799cc1c9790f404d4bbad
parent0dc513b65a3aaf25dfad134b7ef3ac5aaac95159
runtime: store start PC in pcvalueCache

Currently, pcvalue only returns a valid start PC if cache is nil.
We're about to eliminate the cache argument and always use a pcvalue
cache, so make sure the cache stores the start PC and always return it
from pcvalue.

Change-Id: Ie8854af4b7e7ba1c2a17a495d9229320821daa23
Reviewed-on: https://go-review.googlesource.com/c/go/+/515275
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/symtab.go