[ASan] Fix asan_preload_test-2 on PowerPC64 Linux

Summary:
This test failed because clang compiled the call to memset() into a
single sth instruction, instead of a call. Fix it by using write() instead
of memset().

Reviewers: kcc, samsonov, garious, eugenis

Reviewed By: eugenis

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6776

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224812 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Disable one test on Android.

It used to pass by chance and started failing on recent Android builds.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224818 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] mmap2 syscall works with 4096-byte units instead of bytes.

Ouch.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224819 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Disable InternalMmapWithOffset test on Windows.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224820 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix off-by-8x in direct coverage.

File mapping offset was calculated by offsetting (uptr *) instead of (char *).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224821 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Disable InternalMmapWithOffset test on OSX.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224822 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Bandaid fix for PR22025 -- deadlocks when creating suspended threads

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224823 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Support ASAN_ACTIVATION_OPTIONS.

This is mostly useful for testing, as the only other way of specifying
activation options (Android system property) is system-wide and affects
concurrently running tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224824 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix trace initialization during thread id reuse

The current code leaves the first event in the trace part uninitialized
(from the previous thread). It can cause unpredictable behavior
during stack/mutexset restoration.
Initialize the first event to a fake harmless memory access.



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