This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]