aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2023-04-28 15:52:16 -0400
committerGopher Robot <gobot@golang.org>2023-04-28 20:33:34 +0000
commit0fd6ae548f550bdbee4a434285ff052fb9dc7417 (patch)
tree0ab63fdc3c231eaafa8da781d8c0667d8d271133 /src/runtime
parent8b67cf0bc6ad657fddcbaaa10729d0086f08f9a9 (diff)
downloadgo-0fd6ae548f550bdbee4a434285ff052fb9dc7417.tar.xz
cmd/compile: escape package path for PGO symbol matching
Symbol names in the final executable apply escaping to the final component of a package path (main in example.com becomes example%2ecom.main). ir.PkgFuncName does not perform this escaping, meaning we'd fail to match functions that are escaped in the profile. Add ir.LinkFuncName which does perform escaping and use it for PGO. Fixes #59887. Change-Id: I10634d63d99d0a6fd2f72b929ab35ea227e1336f Reviewed-on: https://go-review.googlesource.com/c/go/+/490555 Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions