This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Release RTL bodies after compilation (sometimes)
On Sat, Sep 18, 2004 at 02:14:46PM -0400, Daniel Berlin wrote:
> So you are saying the following would crash during marking?
>
> static GTY(()) varray_type test;
>
>
> <fill up test>
>
> <no varray_clear>
>
> ggc_free (test).
>
>
> Whereas this wouldn't?
>
> static GTY(()) varray_type test;
>
>
> <fill up test>
>
> <no varray_clear>
>
> test = NULL;
Correct. It will still walk test from the roots. It will be pointing
at free'd memory, or GC'd memory of an unexpected type.
--
Daniel Jacobowitz