• Dmitry Vyukov's avatar
    runtime: adjust program counters in race detector · 3fc529ea
    Dmitry Vyukov authored
    In most cases we pass return PC to race detector,
    and race runtime subtracts one from them.
    However, in manual instrumentation in runtime
    we pass function start PC to race runtime.
    Race runtime can't distinguish these cases
    and so it does not subtract one from top PC.
    This leads to bogus line numbers in some cases.
    Make it consistent and always pass what looks
    like a return PC, so that race runtime can
    subtract one and still get PC in the same function.
    
    Also delete two unused functions.
    
    Update #8053
    
    Change-Id: I4242dec5e055e460c9a8990eaca1d085ae240ed2
    Reviewed-on: https://go-review.googlesource.com/4902Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    3fc529ea
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...