mirror of
https://github.com/golang/go.git
synced 2025-05-28 02:41:30 +00:00
cmd/compile: add debug log prior to export data lookup
If there is a crash in LookupFunc (which has occurred a few times now), this ensures that we log the offending symbol before crashing. For #67016. Change-Id: I0119597de2be3d1b97c41a9361273d1feb90ec11 Reviewed-on: https://go-review.googlesource.com/c/go/+/581437 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
508e761978
commit
d037bba19b
@ -333,6 +333,9 @@ func addIndirectEdges(g *IRGraph, namedEdgeMap pgo.NamedEdgeMap) {
|
||||
// devirtualization. Instantiation of generic functions
|
||||
// will likely need to be done at the devirtualization
|
||||
// site, if at all.
|
||||
if base.Debug.PGODebug >= 3 {
|
||||
fmt.Printf("addIndirectEdges: %s attempting export data lookup\n", key.CalleeName)
|
||||
}
|
||||
fn, err := LookupFunc(key.CalleeName)
|
||||
if err == nil {
|
||||
if base.Debug.PGODebug >= 3 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user