llvm-project/compiler-rt/lib/tsan/go
Dmitry Vyukov 180d211770 tsan: Adding releaseAcquire() to ThreadClock
realeaseAcquire() is a new function added to TSan in support of the Go data-race detector.
It's semantics is:

void ThreadClock::releaseAcquire(SyncClock *sc) const {
  for (int i = 0; i < kMaxThreads; i++) {
    tmp = clock[i];
    clock[i] = max(clock[i], sc->clock[i]);
    sc->clock[i] = tmp;
  }
}

For context see: https://go-review.googlesource.com/c/go/+/220419

Reviewed-in: https://reviews.llvm.org/D76322
Author: dfava (Daniel Fava)
2020-03-24 11:27:46 +01:00
..
build.bat [tsan, go] fix Go windows build 2019-10-07 23:11:07 +00:00
buildgo.sh compiler-rt: Rename .cc file in lib/tsan/{benchmarks,dd,go} to .cpp 2019-08-01 14:30:49 +00:00
test.c tsan: Adding releaseAcquire() to ThreadClock 2020-03-24 11:27:46 +01:00
tsan_go.cpp tsan: Adding releaseAcquire() to ThreadClock 2020-03-24 11:27:46 +01:00