This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Better memory statistics, take 2
- From: Daniel Jacobowitz <drow at false dot org>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, stevenb at suse dot de,rth at redhat dot com
- Date: Thu, 2 Sep 2004 13:25:10 -0400
- Subject: Re: Better memory statistics, take 2
- References: <20040902161203.GF22834@atrey.karlin.mff.cuni.cz> <87eklk1vy6.fsf@codesourcery.com>
On Thu, Sep 02, 2004 at 09:23:29AM -0700, Zack Weinberg wrote:
> Jan Hubicka <hubicka@ucw.cz> writes:
>
> > Hi,
> > here is updated version of patch I sent while reducing memory for GCC
> > 3.4, it is quite usefull now again...
> >
> > Hi, this patch improves the per-line statistics by tracking down
> > each allocated entity to figure out whether it will be freed,
> > garbage collected or leaked. To rule out ggc_freed values is pretty
> > important as these are much cheaper,
> ...
>
> Please do timing tests before submitting any changes. In my
> experience ggc_free is *not* cheaper, it is by itself such an
> expensive operation that we don't actually gain anything over
> letting the garbage collector do its job.
Just FYI, in the revamped zone allocator that I've been working on,
ggc_free will be very cheap. If it's not for the page allocator, then
maybe it's a good idea to have it not do anything for !ENABLE_CHECKING.
--
Daniel Jacobowitz