[PATCH] D14324: [tsan] Shadow memory setup for OS X
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 01:37:28 PST 2015
kubabrecka created this revision.
kubabrecka added reviewers: samsonov, glider, kcc, dvyukov.
kubabrecka added subscribers: llvm-commits, zaks.anna, ismailp, jasonk.
The shadow memory initialization in `tsan_platform_mac.cc` needs to be updated to also initialize the meta shadow and to mprotect the memory ranges that need to be avoided. This patch moves most of the Linux implementation of `InitializeShadowMemory`, `ProtectRange` and `CheckAndProtect` into `tsan_rt.cc` so it can be reused on OS X as well.
http://reviews.llvm.org/D14324
Files:
lib/tsan/rtl/tsan_platform_linux.cc
lib/tsan/rtl/tsan_platform_mac.cc
lib/tsan/rtl/tsan_rtl.cc
lib/tsan/rtl/tsan_rtl.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14324.39172.patch
Type: text/x-patch
Size: 10323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151104/d40741f2/attachment-0001.bin>
More information about the llvm-commits
mailing list