• Keith Randall's avatar
    cmd/compile: fix racewalk{enter,exit} removal · 14bdcc76
    Keith Randall authored
    We can't remove race instrumentation unless there are no calls,
    not just no static calls. Closure and interface calls also count.
    
    The problem in issue 29329 is that there was a racefuncenter, an
    InterCall, and a racefuncexit.  The racefuncenter was removed, then
    the InterCall was rewritten to a StaticCall. That prevented the
    racefuncexit from being removed. That caused an imbalance in
    racefuncenter/racefuncexit calls, which made the race detector barf.
    
    Bug introduced at CL 121235
    
    Fixes #29329
    
    Change-Id: I2c94ac6cf918dd910b74b2a0de5dc2480d236f16
    Reviewed-on: https://go-review.googlesource.com/c/155917
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    14bdcc76
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...