This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ggc_del_root
- From: Mark Mitchell <mark at codesourcery dot com>
- To: geoffk at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 18:44:20 -0700
- Subject: ggc_del_root
- Reply-to: mark at codesourcery dot com
I see that ggc_del_root is gone as part of the gengtype conversion.
I don't see, now, how to introduce GC roots for a limited period of
time. You can, of course, keep some global list of things and mark
that for gengtype. But the last thing we want to do is create more
global variables.
Concretely, what I want to do is:
x = new_something ();
ggc_add_root (x);
/* Long-running computation involving x. */
gcc_del_root (x);
Do you have any objection if I restore this entry point?
If you do object, what do you suggest I do instead?
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com