[PATCH] D14288: [tsan] Alternative ThreadState storage for OS X

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 04:43:36 PST 2015


kubabrecka updated this revision to Diff 39344.
kubabrecka added a comment.

Updating patch to implement async-signal-safety.

I'm unsure about the destruction of ThreadState in cur_thread_finalize, does that need to be signal aware as well?  But that only happens once in a thread, and it seems it's already too late for a signal handler to do anything reasonable, and we don't want it to resurrect the ThreadState.  What is the behavior on Linux with regular __thread ThreadState?


http://reviews.llvm.org/D14288

Files:
  lib/tsan/rtl/tsan_interceptors.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: D14288.39344.patch
Type: text/x-patch
Size: 4492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151105/663959f5/attachment.bin>


More information about the llvm-commits mailing list