This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]