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] |
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).
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |