On Mon, Jan 13, 2003 at 09:51:13AM -0800, Steve Fink wrote: > > reference or being a member of an aggregate. > > > > 2) A vtable function obtains a PMC* to that PMC. > > > > 3) The vtable calls some code deletes the reference to the PMC, which is now > > no longer accessible from the root set. The vtable then attempts to allocate > > some memory.
> Nope, that example is just a plain ol' use-of-freed-memory bug. If you > delete something, don't look at it again. However, if you change the The point here is that the PMC's reference may be deleted because you don't know the side-effects of code that you're calling, so you would always have to make sure it is anchored, and incur the overheads etc. -- Jason