• 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
..
testdata Loading commit data...
README Loading commit data...
doc.go Loading commit data...
output_test.go Loading commit data...
race.go Loading commit data...
race_darwin_amd64.syso Loading commit data...
race_linux_amd64.syso Loading commit data...
race_test.go Loading commit data...
race_windows_amd64.syso Loading commit data...