This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[revived PATCH] provide means to access the zone from the correspondingchunk
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Daniel Berlin <dberlin at dberlin dot org>
- Date: Fri, 03 Sep 2004 12:37:21 +0200
- Subject: [revived PATCH] provide means to access the zone from the correspondingchunk
http://gcc.gnu.org/ml/gcc/2004-05/msg00346.html
I've just finished bootstrapping it. Here are the comments from a
subsequent thread, http://gcc.gnu.org/ml/gcc/2004-05/msg00416.html:
> > > > This patch enables the zone collector to recover the page_entry
> > > > and alloc_zone structures from the address of an arbitrary
> > > > ggc_alloc-ed pointer.
> > > Why do we need to do this?
> > > What exactly useful property does being able to get the page entry
> > > have?
> > It allows to recover the zone from the chunk, without *any* kind of
> > overhead. For example, it allows to track inter-zone pointers or
> > chunks that live in the garbage_zone.
> Sorry if i seemed abrupt. It's finals time, and I was incredibly
> curious what you were going to use this for.
> If that is your goal, it may indeed be worth it.
Ok for mainline?
Also, is http://gcc.gnu.org/ml/gcc-patches/2004-05/msg00047.html ok?
Paolo