[llvm-commits] [PATCH] ASan/Android: fall back to the system allocator for unexpected deallocations

Kostya Serebryany kcc at google.com
Thu Dec 8 11:02:38 PST 2011


Having such patch, even under ifdef ANDROID, will be very sad.
It makes free() much slower (linear time + lock, instead of constant time
w/o lock).
We need to figure out some other way (e.g. try to run __asan_init() even
earlier).

--kcc


On Thu, Dec 8, 2011 at 6:38 AM, Evgeniy Stepanov
<eugeni.stepanov at gmail.com>wrote:

> On Android, allocations from static constructors of uninstrumented
> libraries occur before we have a chance to replace the allocator. This
> patch helps avoid crashing on the matching deallocations.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111208/df2af43a/attachment.html>


More information about the llvm-commits mailing list