Jonas Sicking wrote:
> Related to the above, should we attempt to use incremental GC. From what
> I understand this should be entierly possible with MMgc. However it 
> requires that all pointers use special smart-pointers. Including 
> pointers that are currently raw-pointers. This seems a little bit scary 
> and easy to forget, but might be very nice for performance.

Raw pointers should be banned in incremental GC settings. We can use
static analysis to enforce this.

And anyway, we really do need to understand ownership at every edge in
the graph. Right now, a raw pointer is a giant question mark that should
raise alarms about either manual-over-refcounted leak bugs, or else
manually-dropped-early or just plain-old-raw-weak-pointer and therefore
dangling-pointer, exploitable bugs.

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

Reply via email to