]> sourceware.org Git - dwz.git/log
dwz.git
12 years agoSecond part of memory management cleanups. For permanently
Jakub Jelinek [Fri, 20 Apr 2012 07:06:59 +0000 (09:06 +0200)]
Second part of memory management cleanups.  For permanently
(well, for the duration of handling a single file) allocated objects
use a big pool allocator that doesn't unnecessarily align everything
to 16 bytes and allocates in ~ 16MB chunks rather than 4KB.
This decreases memory usage a little bit on large testcases and
speeds things a tiny bit up.
Also, avoid obstacks local to function, for memory allocation failures
if in the future we use longjmp those might not be freed.

12 years agoDon't htab_delete cu->cu_new_abbrev if it is already NULL
Jakub Jelinek [Fri, 20 Apr 2012 07:04:56 +0000 (09:04 +0200)]
Don't htab_delete cu->cu_new_abbrev if it is already NULL
(happens for some .debug_types CUs).

12 years agoFirst pass at memory management cleanup. Ensure (so far only for success)
Jakub Jelinek [Fri, 20 Apr 2012 05:49:36 +0000 (07:49 +0200)]
First pass at memory management cleanup.  Ensure (so far only for success)
that all memory is freed before exit.

12 years agoUndo optimistic die_dup/die_nextdup linking on failures in reverse
Jakub Jelinek [Thu, 19 Apr 2012 15:29:44 +0000 (17:29 +0200)]
Undo optimistic die_dup/die_nextdup linking on failures in reverse
order of their addition.

12 years agoIgnore .debug_gdb_scripts sections.
Jakub Jelinek [Thu, 19 Apr 2012 11:45:08 +0000 (13:45 +0200)]
Ignore .debug_gdb_scripts sections.

12 years agoUse just u.p1.die_ref_hash instead of u.p1.die_hash ^ u.p1.die_ref_hash
Jakub Jelinek [Thu, 19 Apr 2012 11:43:17 +0000 (13:43 +0200)]
Use just u.p1.die_ref_hash instead of u.p1.die_hash ^ u.p1.die_ref_hash
as hash in the dup_htab hash table.  die_ref_hash has die_hash iteratively
hashed in already, and on leaf DIEs is equal to die_hash, so the xor
resulted in 0 for all leaf DIEs.

12 years agoImprove ref_hash computation in cycles - add the forgotten
Jakub Jelinek [Thu, 19 Apr 2012 11:41:37 +0000 (13:41 +0200)]
Improve ref_hash computation in cycles - add the forgotten
addition of *second_idx, so it doesn't hash in always 0.

12 years agoOptimize .debug_abbrev handling for .debug_types section. If
Jakub Jelinek [Thu, 19 Apr 2012 11:39:48 +0000 (13:39 +0200)]
Optimize .debug_abbrev handling for .debug_types section.  If
adjacent .debug_types CUs have the same .debug_abbrev offsets, just
read it once and point the others to the abbrev table owner's CU.

12 years agoFix a thinko that causes
Jakub Jelinek [Thu, 19 Apr 2012 11:37:11 +0000 (13:37 +0200)]
Fix a thinko that causes
create_import_tree: Assertion `ipu2->idx >= npus + ncus' failed.
on some objects.

12 years agoRevamp die_dup/die_nextdup for easier debugging. Instead of
Jakub Jelinek [Thu, 19 Apr 2012 11:35:19 +0000 (13:35 +0200)]
Revamp die_dup/die_nextdup for easier debugging.  Instead of
two separate structures where second one contains the first at the
beginning just put the die_dup/die_nextdup fields last in the
single structure and for !die_toplevel DIEs just allocate using
offsetof (struct dw_die, die_dup) size (so those two fields will be
garbage).

12 years agodwz-0.1 - first public release dwz-0.1
Jakub Jelinek [Thu, 19 Apr 2012 11:32:50 +0000 (13:32 +0200)]
dwz-0.1 - first public release

This page took 0.025705 seconds and 5 git commands to generate.