public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/16244] New: need a type GC
@ 2013-11-25 19:51 tromey at redhat dot com
  0 siblings, 0 replies; only message in thread
From: tromey at redhat dot com @ 2013-11-25 19:51 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16244

            Bug ID: 16244
           Summary: need a type GC
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at redhat dot com

Right now gdb can leak "struct type" instances.
Search for FIXME-type-allocation.

There are two things to do here.
First, a "type GC" would be good, especially for types
not associated with an objfile.  The idea here is to record
all allocations done when copying a type; and then periodically
garbage collect types (using the value history, breakpoint
expressions, and Python types as roots).

Second, for types associated with an objfile, we could either use
the GC, or use "type interning" to be able to reuse range objects.

-- 
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:[~2013-11-25 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-25 19:51 [Bug symtab/16244] New: need a type GC tromey at redhat 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).