On Aug 29, 8:11 am, Benjamin Smedberg <[EMAIL PROTECTED]> wrote:
> mhammond wrote:
> > Yes, this will be a challenge.  I can't picture how dropping refcounts
> > would work in the general case with Python.  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,
> > I'm not sure how we would tell the GC about all such references - and
>
> Can't you just root them while python holds the external references?

Yes, but you'd leak any garbage cycles that include both Python and
XPCOM objects--they would be rooted.  That can be fixed, too, with
enough effort.  It's not simple.

-j

_______________________________________________
dev-tech-xpcom mailing list
dev-tech-xpcom@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to