• Dmitriy Vyukov's avatar
    runtime: support channel-based mutex in race detector · d89a7383
    Dmitriy Vyukov authored
    Update channel race annotations to support change in
    cl/75130045: doc: allow buffered channel as semaphore without initialization
    The new annotations are added only for channels with capacity 1.
    Strictly saying it's possible to construct a counter-example that
    will produce a false positive with capacity > 1. But it's hardly can
    lead to false positives in real programs, at least I would like to see such programs first.
    Any additional annotations also increase probability of false negatives,
    so I would prefer to add them lazily.
    
    LGTM=rsc
    R=golang-codereviews
    CC=golang-codereviews, iant, khr, rsc
    https://golang.org/cl/76970043
    d89a7383
Name
Last commit
Last update
..
archive Loading commit data...
bufio Loading commit data...
builtin Loading commit data...
bytes Loading commit data...
compress Loading commit data...
container Loading commit data...
crypto Loading commit data...
database/sql Loading commit data...
debug Loading commit data...
encoding Loading commit data...
errors Loading commit data...
expvar Loading commit data...
flag Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
html Loading commit data...
image Loading commit data...
index/suffixarray Loading commit data...
io Loading commit data...
log Loading commit data...
math Loading commit data...
mime Loading commit data...
net Loading commit data...
os Loading commit data...
path Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
runtime Loading commit data...
sort Loading commit data...
strconv Loading commit data...
strings Loading commit data...
sync Loading commit data...
syscall Loading commit data...
testing Loading commit data...
text Loading commit data...
time Loading commit data...
unicode Loading commit data...
unsafe Loading commit data...