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)




Actually, it's not an effect at all.  You can only safely use ggc_free
on an object which is not referenced.  Objects which are not
referenced are not marked.

This isn't necessarily true.


You may forget to null out the pointer, accidently keeping it, and what it points to, live (since unless it's marked deletable, the gc doesn't know it can null it for you).

Therefore, ggc_free does not change the
number of objects marked.

Therefore, this isn't true either.
It would be true if the pointer was reset to null before collection, but if not, then ggc_free can change the number of objects marked.





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