[TSan] Support fiber API on macOS
authorJulian Lettner <jlettner@apple.com>
Sat, 20 Apr 2019 00:18:44 +0000 (00:18 +0000)
committerJulian Lettner <jlettner@apple.com>
Sat, 20 Apr 2019 00:18:44 +0000 (00:18 +0000)
commit4d2b9426b99f1d6d4d4b168a3133124ea85da7ea
tree492d9e2f1fd683650f59320fb3367d8b86b3dfda
parentfe8aabf9d9164ac52e7352506ef56f4d7724f766
[TSan] Support fiber API on macOS

Committing on behalf of Yuri Per (yuri).

Reviewers: dvyukov, kubamracek, yln

Reviewed By: kubamracek

Authored By: yuri

Differential Revision: https://reviews.llvm.org/D58110

llvm-svn: 358802
15 files changed:
compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cc
compiler-rt/lib/tsan/rtl/tsan_interface.cc
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc
compiler-rt/lib/tsan/rtl/tsan_rtl.h
compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
compiler-rt/test/lsan/TestCases/swapcontext.cc
compiler-rt/test/sanitizer_common/sanitizer_ucontext.h [new file with mode: 0644]
compiler-rt/test/tsan/fiber_asm.cc
compiler-rt/test/tsan/fiber_from_thread.cc
compiler-rt/test/tsan/fiber_longjmp.cc
compiler-rt/test/tsan/fiber_race.cc
compiler-rt/test/tsan/fiber_simple.cc
compiler-rt/test/tsan/fiber_two_threads.cc
compiler-rt/test/tsan/test.h