|
From: <sv...@va...> - 2008-02-26 01:10:05
|
Author: sewardj
Date: 2008-02-26 01:10:07 +0000 (Tue, 26 Feb 2008)
New Revision: 7471
Log:
Comment-only change.
Modified:
branches/DATASYMS/coregrind/m_debuginfo/readdwarf3.c
Modified: branches/DATASYMS/coregrind/m_debuginfo/readdwarf3.c
===================================================================
--- branches/DATASYMS/coregrind/m_debuginfo/readdwarf3.c 2008-02-26 01:09:37 UTC (rev 7470)
+++ branches/DATASYMS/coregrind/m_debuginfo/readdwarf3.c 2008-02-26 01:10:07 UTC (rev 7471)
@@ -105,6 +105,11 @@
whether or not they advanced the DIE cursor, and only if they
didn't should read_DIE itself read through the DIE.
+ ML_(addVar) and add_var_to_arange: quite a lot of DiAddrRanges have
+ zero variables in their .vars XArray. Rather than have an XArray
+ with zero elements (which uses 2 malloc'd blocks), allow the .vars
+ pointer to be NULL in this case.
+
More generally, reduce the amount of memory allocated and freed
while reading Dwarf3 type/variable information. Even modest (20MB)
objects cause this module to allocate and free hundreds of
|