This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Use REAL(malloc) instead of __libc_malloc for Android.
ClosedPublic

Authored by yabinc on Dec 7 2015, 12:05 PM.

Details

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.

Diff Detail

Event Timeline

yabinc updated this revision to Diff 42089.Dec 7 2015, 12:05 PM
yabinc retitled this revision from to [tsan] Use REAL(malloc) instead of __libc_malloc for Android..
yabinc updated this object.
yabinc added a subscriber: llvm-commits.
dvyukov accepted this revision.Dec 8 2015, 8:05 AM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Dec 8 2015, 8:05 AM
yabinc closed this revision.Dec 9 2015, 2:35 PM