Dan Sugalski wrote:

It'd be simple enough to do--prepend a PObj front to the vtables and allocate the vtables themselves out of a separate managed arena, and do a bit of custom mark noting. This'd make collecting up unused vtables easy enough. The downside to this is it means we add in a *lot* of extra pointer traversal, as we add in an extra live pointer for every live PMC in the system.

It's a lot of extra work for the DOD. I'm up for it if we have to, but I'd prefer to not do it if we don't have to.

Rather not. But if we have to allocate a separate vtable, we should set a flag in the vtable->flags, mark the PMC as special, so that destroy can free the vtable.
leo





Reply via email to