I've been trying to get leak testing working on b2g[0] and I've
discovered a number of leaks[1][2][3] that are caused by StaticRefPtrs
that are never cleared at shutdown.  Static*Ptrs are there to avoid
static constructors and destructors so they can't clear themselves at
shutdown.  That means that they behave quite differently than
"regular" smart pointers.  Am I the only one who is bothered by this?

I can add debug only assertions that they are cleared (that's
effectively what leak checking is) but this feels wrong to me.

- Kyle

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1038943
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1047756
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1047757
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1047759
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to