This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16614] Excessive resource usage in __mt_alloc
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2004 12:46:56 -0000
- Subject: [Bug libstdc++/16614] Excessive resource usage in __mt_alloc
- References: <20040718123236.16614.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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