<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 23, 2015 at 11:51 AM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Dale Martin <<a href="mailto:Dale.Martin@mathworks.com">Dale.Martin@mathworks.com</a>> writes:<br>
> We were doing some experiments to deserialize/JIT bitcode on multiple threads<br>
> and we hit what looks like this issue:<br>
><br>
> <a href="http://lists.cs.uiuc.edu/pipermail/llvmbugs/2013-April/027937.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmbugs/2013-April/027937.html</a><br>
><br>
> We’re using LLVM-3.5 so I was a bit surprised that the patch that was provided<br>
> in 2013 doesn’t appear to be in the current codebase. I’m curious what the<br>
> status of this patch and issue are? Are other people multithreading their code<br>
> this way?<br>
<br>
</div></div>I didn't look into it, but the bug's description states this only<br>
happens when LLVM is built by a pre-C++11 compiler. Trunk requires C++11<br>
these days, so is this fix even relevant anymore?<br></blockquote><div><br></div><div>It's still relevant. Our minimum supported VS version is 2013, which doesn't have thread safe statics yet. VS 2015 will have it, but it hasn't been officially released yet. Six CTPs and still going strong. :)</div><div><br></div><div>Probably the best thing to do here is some manual atomic checking and setting of the page size. ManagedStatic is IMO too heavyweight.</div></div></div></div>