diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2018-03-27 15:35:51 -0700 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2018-04-02 21:50:05 +0000 |
| commit | c0841ecd87a5a91cdd5e2c376d46230988a37ada (patch) | |
| tree | faf178e66ffd5a05c4055a66eb8b3b740311240b /src/strings/replace.go | |
| parent | 690324408f4e28449e81032204596880ce45dde8 (diff) | |
| download | go-c0841ecd87a5a91cdd5e2c376d46230988a37ada.tar.xz | |
cmd/compile: disable instrumentation for no-race packages earlier
Rather than checking for each function whether the package supports
instrumentation, check once up front.
Relatedly, tweak the logic for preventing inlining calls to runtime
functions from instrumented packages. Previously, we simply disallowed
inlining runtime functions altogether when instrumenting. With this
CL, it's only disallowed from packages that are actually being
instrumented. That is, now intra-runtime calls can be inlined.
Updates #19054.
Change-Id: I88c97b48bf70193a8a3ee18d952dcb26b0369d55
Reviewed-on: https://go-review.googlesource.com/102815
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/strings/replace.go')
0 files changed, 0 insertions, 0 deletions
