llvm-project/compiler-rt/lib
Sergey Matveev b029c5101f [ASan, LSan] Improve tracking of thread creation.
In the current scheme of things, the call to ThreadStart() in the child
thread is not synchronized with the parent thread. So, if a pointer is passed to
pthread_create, there may be a window of time during which this pointer will not
be discoverable by LSan. I.e. the pthread_create interceptor has already
returneed and thus the pointer is no longer on the parent stack, but we don't
yet know the location of the child stack. This has caused bogus leak reports
(see http://llvm.org/bugs/show_bug.cgi?id=21621/).

This patch makes the pthread_create interceptor wait until the child thread is
properly registered before returning.

llvm-svn: 223419
2014-12-05 00:10:15 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [ASan, LSan] Improve tracking of thread creation. 2014-12-05 00:10:15 +00:00
builtins PR21518: Use unsigned arithmetic for trapping add/sub functions. 2014-11-12 23:01:24 +00:00
dfsan [DFSan] Add flag to dump the labels when the program terminates. 2014-11-20 10:01:08 +00:00
interception [sanitizer] Android build cleanup. 2014-09-29 13:18:55 +00:00
lsan [ASan, LSan] Improve tracking of thread creation. 2014-12-05 00:10:15 +00:00
msan [msan] allow -fsanitize-coverage=N together with -fsanitize=memory, compiler-rt part 2014-12-03 23:29:14 +00:00
profile [Profile] Always build profile runtime library with -fPIC. 2014-11-14 00:16:26 +00:00
sanitizer_common Replace InternalScopedBuffer<char> with InternalScopedString where applicable. 2014-12-02 22:20:11 +00:00
tsan Replace InternalScopedBuffer<char> with InternalScopedString where applicable. 2014-12-02 22:20:11 +00:00
ubsan Simplify Symbolizer::SymbolizePC() interface. 2014-12-02 19:48:40 +00:00
CMakeLists.txt [msan] Remove MSanDR and supporting code. 2014-11-18 10:33:15 +00:00
Makefile.mk Move original compiler-rt functions (libgcc replacement) to lib/builtins directory 2014-02-14 09:20:33 +00:00