<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 12:58 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@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">================<br>
Comment at: lib/asan/asan_dll_thunk.cc:173<br>
@@ +172,3 @@<br>
+    static fntype fn = 0;<br>
+    if (fn) return;<br>
+<br>
----------------<br>
Do you guys worry about concurrent calls to __asan_init_v3, or can you always initialize before threads are created?<br></blockquote><div>Yes, we expect that __asan_init_v3 is called before any threads (otherwise it would be a disaster indeed).  </div>
<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">
<br>
<a href="http://reviews.llvm.org/D3848" target="_blank">http://reviews.llvm.org/D3848</a><br>
<br>
<br>
</blockquote></div><br></div></div>