[PATCH] D15123: [tsan] Use re-exec method to enable interceptors on older versions of OS X

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 11:46:59 PST 2015


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

In AddressSanitizer, we have the `MaybeReexec` method to detect when we're running without `DYLD_INSERT_LIBRARIES` (in which case interceptors don't work) and re-execute with the environment variable set.  On OS X 10.11+, this is no longer necessary, but to have ThreadSanitizer supported on older versions of OS X, let's use the same method as well.  This patch moves the implementation from `asan/` into `sanitizer_common/`.

http://reviews.llvm.org/D15123

Files:
  lib/asan/asan_internal.h
  lib/asan/asan_linux.cc
  lib/asan/asan_mac.cc
  lib/asan/asan_win.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_linux.cc
  lib/sanitizer_common/sanitizer_mac.cc
  lib/sanitizer_common/sanitizer_win.cc
  lib/tsan/rtl/tsan_rtl.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15123.41546.patch
Type: text/x-patch
Size: 17923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151201/d26a0ad3/attachment.bin>


More information about the llvm-commits mailing list