• Matthew Dempsky's avatar
    cmd/compile: disable instrumentation for no-race packages earlier · c0841ecd
    Matthew Dempsky authored
    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: default avatarCherry Zhang <cherryyz@google.com>
    c0841ecd
racewalk.go 13.2 KB