[Bug libstdc++/16614] Excessive resource usage in __mt_alloc

peturr02 at ru dot is gcc-bugzilla@gcc.gnu.org
Sun Jul 18 12:46:00 GMT 2004


------- Additional Comments From peturr02 at ru dot is  2004-07-18 12:46 -------
Created an attachment (id=6771)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6771&action=view)
Test case

This test case instantiates __mt_alloc on 1024 different types. It uses about
300 MB of memory, almost all of which is overhead (any memory allocated from
__mt_alloc is deallocated before any more memory is requested). The thread
stuff is just to force __gthread_active_p() to return true.

WARNING: Compiling this takes huge amounts of time and memory.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16614



More information about the Gcc-bugs mailing list