<div dir="ltr">That sounds like a bug. Can you file this at <a href="http://llvm.org/bugs">llvm.org/bugs</a> please?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 11:48 AM, Yucong Sun <span dir="ltr"><<a href="mailto:sunyucong@gmail.com" target="_blank">sunyucong@gmail.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="im HOEnZb">Please download it at<br>
(<a href="http://192.169.99.10/apply_cache.tar.gz" target="_blank">http://192.169.99.10/apply_cache.tar.gz</a>)<br>
<br>
clang 3.3 is fine (although slow)<br>
clang 3.4 will oom<br>
<br>
[2632819.135797] Out of memory: Kill process 11919 (clang) score 848<br>
or sacrifice child<br>
[2632819.136017] Killed process 11919 (clang) total-vm:7024768kB,<br>
anon-rss:6925660kB, file-rss:64kB<br>
<br>
it boils down to a single line change:<br>
<br>
static cache_entry_t cache[APPLY_CACHE_SIZE] = {{ 0 }};<br>
<br>
will cause the oom (in 3.3 it will produce a pretty big object file, like 128M)<br>
<br>
static cache_entry_t cache[APPLY_CACHE_SIZE];<br>
<br>
will fix the oom,  the end effect is same, since static variables are<br>
initialized to 0 anyway.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>