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: 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


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