This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: RFC: free pending blocks
- From: John Gilmore <gnu at toad dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: GDB Development <gdb at sourceware dot org>
- Date: Wed, 28 Nov 2012 17:24:26 -0800
- Subject: Re: RFC: free pending blocks
- References: <87vccp8lm8.fsf@fleche.redhat.com>
That's a nice improvement.
Would it perhaps be better to just allocate these pending blocks
on their own obstack, so they can all be freed at once without doing
a lot of pointer walking?
(Or, deallocate them as they are walked to make the blockvector, to
improve cache locality, rather than in a separate pointer chain walk.)
I don't know how many such blocks are likely to exist in typical
programs, but I suspect there could be thousands.
John