[asan] add a feature to detect new-delete-size-mismatch (when used with -Xclang -fsized-deallocation). Not yet on Mac. Also, remove some unused code.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@214296 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] rename new-delete-size-mismatch to new-delete-type-mismatch and make the report more verbose

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@214303 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Make SuppressionContext a singleton class, residing in sanitizer_common.

Convert TSan and LSan to the new interface. More changes will follow:
1) "suppressions" should become a common runtime flag.
2) Code for parsing suppressions file should be moved to SuppressionContext::Init().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@214334 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Make "suppressions" and "print_suppressions" common runtime flags.

No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@214343 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Hoist the code parsing suppressions file into sanitizer_common.

Remove corresponding bits from LSan and TSan runtimes. No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@214344 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: use MADV_NOHUGEPAGE only if it is supported by platform
Fixes build failure on an old system:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-centos-6.5/builds/7555/steps/build/logs/stdio



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@214394 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] End-to-end test for REP MOVS instrumentation.

Patch by Yuri Gorshenin.


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