<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 14, 2014 at 1:47 AM, Richard Smith <span dir="ltr"><<a href="mailto:richardsmith@google.com" target="_blank">richardsmith@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div class="im">On Mon, Jan 13, 2014 at 8:03 AM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><br>
On 13/01/2014 15:02, Kostya Serebryany wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Alp, others,<br>
<br>
Now that there is no urgent issue I'd like to return to the discussion about names with "__" prefix in sanitizer run-times.<br>
</blockquote>
<br></div></blockquote></div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">If you're OK to conditionalize the code so it's only defined in sanitizer builds, that's fine and as Sean pointed out there's already plenty of precedent -- it's what every software project does to define "__" prefixed weak link functions like libc malloc hooks.<br>

</blockquote><div> </div></div><div>This discussion is so vastly far from the best use of any of our time. Let's just restore the name we had before and wrap the definition in __has_feature(leak_sanitizer). I think that will make everyone happy. OK?</div>
</div></div></div></blockquote><div><br></div><div>There is no __has_feature(leak_sanitizer) and it can't be implemented with reasonable semantics (discussed here before).</div><div>Unless someone objects, I'll change the code back to use __lsan_is_turned_off and hide it under __has_feature(address_sanitizer),</div>
<div>then I will revert my change that added an alternative to __lsan_is_turned_off (LeakSanitizerIsTurnedOffForTheCurrentProcess)</div><div><br></div><div>This means that <span style="font-family:arial,sans-serif;font-size:13px"> -Wreserved, -Wreserved-macros, -Wreserved-identifiers (once implemented) </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">will not work on clang bootstrap in AddressSanitizer mode, </span></div><div><span style="font-family:arial,sans-serif;font-size:13px">but let Alp handle this if it ever becomes a problem.</span></div>
<div> </div></div>--kcc </div></div>