[asan] new flag: hard_rss_limit_mb

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224353 91177308-0d34-0410-b5e6-96231b3b80d8
Fixes wrong -march=aarch64 option in compiler-rt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224362 91177308-0d34-0410-b5e6-96231b3b80d8
Fix Win build after r224353: void function returning zero.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224366 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] trying to fix Mac build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224370 91177308-0d34-0410-b5e6-96231b3b80d8
Fix test cases given Clang's improved location information.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224387 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Introduce SetCanPoisonMemory() function.

SetCanPoisonMemory()/CanPoisonMemory() functions are now used
instead of "poison_heap" flag to determine if ASan is allowed
to poison the shadow memory. This allows to hot-patch this
value in runtime (e.g. during ASan activation) without introducing
a data race.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224395 91177308-0d34-0410-b5e6-96231b3b80d8
Rename asan_allocator2.cc to asan_allocator.cc

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224396 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Re-structure the allocator code. NFC.

Introduce "Allocator" object, which contains all the bits and pieces
ASan allocation machinery actually use: allocator from sanitizer_common,
quarantine, fallback allocator and quarantine caches, fallback mutex.

This step is a preparation to adding more state to this object. We want
to reduce dependency of Allocator on commandline flags and be able to
"safely" modify its behavior (such as the size of the redzone) at
runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224406 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add disabled test case for issue 87



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224422 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Stop calling pthread_getspecific in signal handlers.

pthread_getspecific is not async-signal-safe.

MsanThread pointer is now stored in a TLS variable, and the TSD slot
is used only for its destructor, and never from a signal handler.

This should fix intermittent CHECK failures in MsanTSDSet.



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