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: C++ PATCH: PR 21687


On Fri, 2005-09-02 at 11:31 -0700, Mark Mitchell wrote:
> We were missing ggc_push_context calls around functions in local
> classes; we want to collect within those functions, but we have local
> state that is not in GC roots.


This reintroduces uses of ggc_push_context/pop_context, which we had
been rid of before.
:(
This will break the zone collector (which i was hoping to make the
default in 4.2), as an example, since we removed support for push/pop
context there since it wasn't used anymore.

When faced with these choices before, the solution chosen has been to
put the local state into GC and make it a GC root.

Is there some reason we've chosen not to do the same here?

--Dan



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