summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/debug_alloc_stack.cc
Commit message (Collapse)AuthorAgeFilesLines
* [sanitizer] Introduce tid_t as a typedef for OS-provided thread IDsKuba Mracek2017-04-171-3/+3
| | | | | | | | We seem to assume that OS-provided thread IDs are either uptr or int, neither of which is true on Darwin. This introduces a tid_t type, which holds a OS-provided thread ID (gettid on Linux, pthread_threadid_np on Darwin, pthread_self on FreeBSD). Differential Revision: https://reviews.llvm.org/D31774 llvm-svn: 300473
* Make this REQUIRES match the other REQUIRES lines that mention requiringChandler Carruth2016-12-201-1/+1
| | | | | | a darwin system. llvm-svn: 290152
* Fixup for r290119: Only run debug_alloc_stack.cc on Darwin until I figure ↵Kuba Mracek2016-12-191-0/+3
| | | | | | out how to make it work on Linux. llvm-svn: 290129
* More fixup for r290119: Make the ifdef work.Kuba Mracek2016-12-191-2/+2
| | | | llvm-svn: 290126
* Another fix-up for r290119: Include stdint.h so we have uint64_t on Linux.Kuba Mracek2016-12-191-0/+1
| | | | llvm-svn: 290124
* [tsan] Implement __tsan_get_alloc_stack and __tsan_locate_address to query ↵Kuba Mracek2016-12-191-0/+80
pointer types and allocation stacks of heap pointers In ASan, we have __asan_locate_address and __asan_get_alloc_stack, which is used in LLDB/Xcode to show the allocation backtrace for a heap memory object. This patch implements the same for TSan. Differential Revision: https://reviews.llvm.org/D27656 llvm-svn: 290119
OpenPOWER on IntegriCloud