On Sep 4, 7:47 pm, Robert O'Callahan <[EMAIL PROTECTED]> wrote:
> What's the impact of using DRC for everything in our own code?

I think we would have to keep AddRef and Release as virtual functions,
and we would have to keep the hack in DOM where child nodes don't hold
real references to their siblings or parents.  We would keep all the
reference-counting scaffolding we have now; it would just be
backstopped by MMgc instead of the cycle collector.

A lot of this pain is because multiple inheritance and DRC don't mix
very well, as Benjamin pointed out.

Benjamin also thinks DRC is, in fact, avoidable in XPCOM-- we'll use a
GCObject wrapper when passing DRC script objects to XPCOM code.

> BTW is there a document somewhere that summarizes the run-time costs
> of inheriting from GCObject etc, or should I just look at the source?

Look at the source, probably.

-j

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to