[asan] fix powerpc build and one test; fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181881 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] disable BuiltinLongJmpTest on PowerPC

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181890 91177308-0d34-0410-b5e6-96231b3b80d8
Try to improve performance by using a read/write buffer instead of I/O.

The calls to fwrite/fread can be very expensive. GCC avoids this by using a
buffer to read and write from the file, thus limiting the number of fwrite/fread
calls.

<rdar://problem/13466086>


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181924 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] added a test for a bug in allocator discovered by Sergey Matveev (uint32 overflow in GetBlockBegin)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181984 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix the GetBlockBegin overflow bug while preserving the performance optimization (use 32-bit division when possible). Improve the benchmarks that checks for performance of GetBlockBegin/GetMetaData

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181989 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix ShadowGapTest on PowerPC64

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181991 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix a gcc warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181992 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix the region overflow condition in SanitizerAllocator64::PopulateFreeList().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182002 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Intercept dl_iterate_phdr.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182004 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] symbolize when possible, even if ASAN_SYMBOLIZER_PATH is not provided. On Linux this will use dl_iterate_phdr instead of /proc/self/maps, even if the symbolizer is not installed

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182005 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix gcc build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182006 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix interface_symbols_darwin to pass a correct flag to nm.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182008 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix init-order-dlopen.cc to pass under Mac OS.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182010 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix allow_user_segv.cc on Darwin (32-bit build required a SIGBUS handler instead of the SIGSEGV one)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182080 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: comment out debug output in test


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182087 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: introduce recursive mutex lock/unlock  java interface
this is required to handle Object.Wait()


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182088 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: remove "printing report from signal handler. Can crash or hang" output
it was added to debug mysterious hangs, but it does not seem to happen anymore
now it only clutter up output


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182089 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Unpoison dlpi_name in dl_iterate_phdr interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182093 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix gcc build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182094 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make the regression test for time(NULL) Linux-specific, as it crashes on Darwin (and the problem used to occur on Linux).
Do not use zero-based shadow for the time() test.


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