diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-21 14:38:41 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-21 14:38:41 +0000 |
commit | fc1463ac75cfc8712f0ed30148758871938aafb1 (patch) | |
tree | e166d7d3117000f5846abe234dc69499bead2ec8 /lib/tsan/rtl/tsan_debugging.cc | |
parent | 075c251640c88f5431dd291e86f1ca2b9c266ce4 (diff) |
[sanitizer] Use pthread_threadid_np as thread ID on OS X
Let's use pthread_threadid_np which returns a more reasonable ID than pthread_self (which is actually a stack pointer). The numbers from pthread_threadid_np are already used in other tools, e.g. in LLDB, and often appear in logs, so it's much more useful than pthread_self.
Differential Revision: http://reviews.llvm.org/D18951
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_debugging.cc')
0 files changed, 0 insertions, 0 deletions