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]

Re: [PATCH]: Add ggc_free to ggc-zone


On Fri, Jan 30, 2004 at 05:39:28PM -0500, Daniel Berlin wrote:
> +#ifdef ENABLE_GC_CHECKING
> +  /* Poison the chunk.  */
> +  poison_chunk (chunk, ggc_get_size (p));
> +#endif

The point of the default is to avoid the ifdef.

> +    free_chunk (chunk, ggc_get_size (p), &main_zone);

Don't you have to find out what zone it really came from?


r~


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