<div>Having such patch, even under ifdef ANDROID, will be very sad. </div><div>It makes free() much slower (linear time + lock, instead of constant time w/o lock). </div><div>We need to figure out some other way (e.g. try to run __asan_init() even earlier). </div>
<div><br></div><div>--kcc </div><br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 6:38 AM, Evgeniy Stepanov <span dir="ltr"><<a href="mailto:eugeni.stepanov@gmail.com">eugeni.stepanov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On Android, allocations from static constructors of uninstrumented<br>
libraries occur before we have a chance to replace the allocator. This<br>
patch helps avoid crashing on the matching deallocations.<br>
</blockquote></div><br>