This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: adding destroyable objects into Ggc
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.