<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 2 Aug 2017, at 00:49, David Blaikie <<a href="mailto:dblaikie@gmail.com" class="">dblaikie@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Jul 31, 2017 at 11:18 PM Dean Michael Berris via Phabricator <<a href="mailto:reviews@reviews.llvm.org" class="">reviews@reviews.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dberris added a comment.<br class="">
<br class="">
In <a href="https://reviews.llvm.org/D36078#826962" rel="noreferrer" target="_blank" class="">https://reviews.llvm.org/D36078#826962</a>, @kpw wrote:<br class="">
<br class="">
> What's the primary motivation? Are we trying to avoid the upfront cost of global initialization? The unspecified destructor ordering with multithreaded programs?<br class="">
<br class="">
<br class="">
The primary motivation is to avoid the initialization of atomics at initialization time. This has caused some issues in the past with dynamic linking and relocations.<br class=""></blockquote><div class=""><br class="">Correctness issues? Performance issues? Seems like it'd be good to have the issues described more fully here (and/or in the commit(s) for posterity/clarity)<br class=""> </div></div></div></div></blockquote><div><br class=""></div><div>Runtime crashes during initialisation and incompatibilities. I guess you can call those correctness issues.</div></div></body></html>