[PATCH] mark_hook in GTY?

Steven Bosscher stevenb.gcc@gmail.com
Thu Jan 18 18:52:00 GMT 2007


On Thursday 18 January 2007 19:06, Basile STARYNKEVITCH wrote:
> As I suggested in the last part of my (somehow confusing) message
> http://gcc.gnu.org/ml/gcc/2006-12/msg00254.html it could be
> interesting for some few passes to have the GGC garbage collector call
> a post-marking hook, which is called once when a structure is marked.

I can't approve the patch, but I like the idea.

We could also use this for things like GC debugging, to figure
out where we leave things dangling in GC memory that should
actually be freed (i.e. mem leaks).

Gr.
Steven



More information about the Gcc-patches mailing list