<div dir="ltr">This seems like way overkill for something that doesn't have a real finalizer.  All threads will observe the same page size, right?  Why not query the size and do an atomic store if the size is uninitialized?  You'd probably need to consult a shared memory expert to get this 100% correct.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 9:01 AM, Jim Kearney <span dir="ltr"><<a href="mailto:jim.kearney@oracle.com" target="_blank">jim.kearney@oracle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please review the attached patch which is intended to fix <a href="http://llvm.org/bugs/show_bug.cgi?id=15749" target="_blank">http://llvm.org/bugs/show_bug.<u></u>cgi?id=15749</a>. If it's acceptable, please commit it.<br>

<br>
It replaces an auto static with a ManagedStatic<> to eliminate a race in multithreaded code generation (on some platforms/compilers).<br>
<br>
Thanks,<br>
J. Kearney<br>
<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>