[tsan] Use REAL(malloc) instead of __libc_malloc for Android.
authorYabin Cui <yabinc@google.com>
Wed, 9 Dec 2015 22:32:38 +0000 (22:32 +0000)
committerYabin Cui <yabinc@google.com>
Wed, 9 Dec 2015 22:32:38 +0000 (22:32 +0000)
commit4ddbe8508a0bb7b3b5bcf892034594a29292bd36
treee390c4a1eaaa60df6aef3031c9d0fbee73aac18d
parent02b8e94943ca216ca9df313fd076c3e7a2d29448
[tsan] Use REAL(malloc) instead of __libc_malloc for Android.

Summary:
Android doesn't have __libc_malloc and related allocation
functions. As its dynamic linker doesn't use malloc, so
we can use REAL(malloc) to replace __libc_malloc safely.

Reviewers: kcc, eugenis, dvyukov

Subscribers: llvm-commits, tberghammer, danalbert, srhines

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

llvm-svn: 255167
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc
compiler-rt/lib/tsan/rtl/tsan_new_delete.cc