Re: RFC: introduce scoped cleanups

Tom Tromey
2013-07-16T20:33:55Z

Joel> Regardless of the above, I like the idea of performing the cleanups
Joel> on an obstack; fast and yet a little more resilient to programming
Joel> errors. Not sure if that would be something easy to implement or not,
Joel> though.

Tom> It ought to be easy. I will look into it.

I think it is easy to implement. And, I think I've convinced myself
that it is safe. But it seems to me that we could keep a freelist
instead -- this is much more obviously safe, and also, I think,
reasonably fast in most cases. So I think I'm more inclined to take
this approach instead.

Tom