[PATCH] D14237: [tsan] Port TSan interceptors on OS X

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 07:46:45 PST 2015


kubabrecka created this revision.
kubabrecka added reviewers: kcc, samsonov, glider, dvyukov.
kubabrecka added subscribers: llvm-commits, zaks.anna, ismailp, jasonk.

This patch modifies `tsan_interceptors.cc` to be buildable on OS X.  Several of the intercepted methods are not available on OS X, so we need to `#if !SANITIZER_MAC` them.  Plus a few other fixes, e.g. `pthread_yield` doesn't exist, let's use `internal_sched_yield` instead.

This is part of an effort to port TSan to OS X, and it's one the very first steps. Don't expect TSan on OS X to actually work or pass tests at this point.


http://reviews.llvm.org/D14237

Files:
  lib/tsan/rtl/tsan_interceptors.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14237.38923.patch
Type: text/x-patch
Size: 19934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151102/df781d98/attachment-0001.bin>


More information about the llvm-commits mailing list