tsan: fixes to ThreadClock::releaseStoreAcquire and tests
authorDaniel S Fava <danielsfava@gmail.com>
Thu, 16 Apr 2020 20:53:26 +0000 (22:53 +0200)
committerDaniel S Fava <danielsfava@gmail.com>
Thu, 16 Apr 2020 20:53:26 +0000 (22:53 +0200)
commit3b222ef246ef9298e57d00b7c8c1ffd92d0fb44d
tree04c6f10a2fc02e3066886520c0fd948a9c92f213
parentf0612957324b287d8bf3e00cac3dc3d48ba6d414
tsan: fixes to ThreadClock::releaseStoreAcquire and tests

Fixes:
1. Setting the number of entries in a thread's clock to max between
   the thread and the SyncClock the thread is acquiring from
2. Setting last_acquire_

Unit- and stress-test for releaseStoreAcquire added to
tests/unit/tsan_clock_test.cpp
compiler-rt/lib/tsan/rtl/tsan_clock.cpp
compiler-rt/lib/tsan/tests/unit/tsan_clock_test.cpp