[msan] Add changes missing from r177065.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177067 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] fixed a bug in ThreadLister tests where we forgot to terminate one thread

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177068 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] remove one redundant malloc stress test, unify the usage of ASAN_LOW_MEMORY macro in tests, slightly reduce test memory usage (all to make 32-bit runs consume less RAM)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177069 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Build sanitizer_common with -fno-rtti

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177070 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] No dirent64 on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177071 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add default constructor for BlockingMutex

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177072 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add generic ThreadRegistry class for sanitizer runtimes. This class holds basic thread bookkeeping logic and allows specific sanitizer runtimes to create thread contexts and mark threads as created/running/joined etc. The class is based on the way we currently store thread contexts in TSan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177074 91177308-0d34-0410-b5e6-96231b3b80d8