This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Call pthread interceptors directly in TSan RTL unit tests
ClosedPublic

Authored by kubamracek on Nov 14 2016, 2:40 PM.

Details

Summary

On Darwin, we're running the TSan unit tests without interceptors. To make sure TSan observes all the pthread events (thread creating, thread join, condvar signal, etc.) in tsan_posix.cc, we should call the pthread interceptors directly, as we already do in tsan_test_util_posix.cc. This fixes some flaky failures on Darwin bots.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek updated this revision to Diff 77889.Nov 14 2016, 2:40 PM
kubamracek retitled this revision from to [tsan] Call pthread interceptors directly in TSan RTL unit tests.
kubamracek updated this object.
kubamracek added reviewers: dvyukov, zaks.anna.
kubamracek set the repository for this revision to rL LLVM.
kubamracek added a project: Restricted Project.
kubamracek added a subscriber: llvm-commits.
dvyukov accepted this revision.Nov 15 2016, 5:17 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Nov 15 2016, 5:17 AM
This revision was automatically updated to reflect the committed changes.