On Aug 28, 6:23 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Aug 28, 6:07 pm, mhammond <[EMAIL PROTECTED]> wrote: > > > The XPCOM objects exposed > > by Python can be made a GCObject - but I'm not sure how we would > > integrate the rest of the Python universe - eg, assuming we have an > > arbitrary number of Python objects holding pointers to xpcom objects, > > MMgc is conservative. So long as Python allocates memory to be scanned > for pointers to MMgc allocations using MMgc's malloc wrapper, MMgc > will find these pointers.
I should have written "using an appropriate malloc wrapper". Ideally only memory that might contain pointers to XPGC (heh) objects would be allocated with the kContainsPointer MMgc flag. that may be hard to hook into C-Python. Is it? /be _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
