On Sep 7, 12:17 pm, mhammond <[EMAIL PROTECTED]> wrote: > That would be reasonable assuming the *only* problem we see with cross- > language xpcom is collecting cycles - but it seems to me that this > thread has identified a number of other issues too - for example, > there was discussion of dropping AddRef and Release and moving to > assuming MMgc or similar is the memory manager. Such issues go beyond > simply integrating with a cycle collection detector (and bring us > right back to the start of this thread :)
The scheme I'm suggesting would eliminate the need for reference counting, without forcing everyone to use a common memory manager. The basic idea is to have all VMs participate in a global mark-and- sweep collection, by plugging them into a common API so that one VM can mark objects managed by another VM. Objects that might be referenced by foreign VMs can only be collected during this global GC. This approach can collect cycles but it's not just a cycle detector. Rob _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
