Re: vtables as collectable objects

2004-03-07 Thread Dan Sugalski
At 4:51 PM +0100 3/4/04, Leopold Toetsch wrote: 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.

Re: vtables as collectable objects

2004-03-07 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: At 4:51 PM +0100 3/4/04, Leopold Toetsch wrote: 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. That works for one-off vtables, but doesn't

vtables as collectable objects

2004-03-04 Thread Dan Sugalski
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

Re: vtables as collectable objects

2004-03-04 Thread Leopold Toetsch
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*