public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/14108] New: symbase in elf_slurp_symbol_table memory waste
@ 2012-05-14 17:05 dje at google dot com
0 siblings, 0 replies; only message in thread
From: dje at google dot com @ 2012-05-14 17:05 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14108
Bug #: 14108
Summary: symbase in elf_slurp_symbol_table memory waste
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
AssignedTo: unassigned@sourceware.org
ReportedBy: dje@google.com
Classification: Unclassified
It is not possible for the caller of bfd_canonicalize_symtab to free the
"symbase" object allocated by elf_slurp_symbol_table (bfd/elfcode.h).
The memory isn't wasted per se, it will be freed when the bfd is freed.
However, GDB has no need to keep it (at least for normal syms, there's a
comment in gdb/elfread.c about needing to keep dynamic syms, not sure it's
still valid or if it applies here). In large apps it can be a significant
waste of memory (e.g. 100's of MB).
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-14 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 17:05 [Bug symtab/14108] New: symbase in elf_slurp_symbol_table memory waste dje at google dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).