This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Add ggc_free to ggc-zone
- From: Richard Henderson <rth at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Jan 2004 14:58:58 -0800
- Subject: Re: [PATCH]: Add ggc_free to ggc-zone
- References: <29C31C5A-5375-11D8-A1AC-000A95DA505C@dberlin.org>
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~