http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50636
--- Comment #14 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-10-08 21:10:13 UTC --- Thanks for the review. Fixed the accounting I'll leave the xmalloc_failed hook out for now: it would need a retry path which is somewhat complicated. If it's needed would probably just add another separate threshold that forces munmapping. BTW i also filed a bug on the glibc bug this triggered: http://sourceware.org/bugzilla/show_bug.cgi?id=13276