adding destroyable objects into Ggc

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Oct 18 20:52:00 GMT 2011


On Tue, Oct 18, 2011 at 12:50 PM, Ian Lance Taylor <iant@google.com> wrote:
> Before we introduced garbage collection, gcc used pools (well, obstacks),

When I started in 1997, obstack was still there and it isn't that long ago, so
things do move fast -- for a large software like GCC.

> but there were severe
> problems because
> pointers to one pool would be assigned to a pointer to a different
> pool and then become
> dangling pointers when the first pool was deleted.  C++ will let us
> avoid that problem.

Exactly.



More information about the Gcc mailing list