On Tuesday 2014-12-23 09:49 -0800, Eric Rescorla wrote: > Hmm... This seems to work fine with RefPtr, but it *doesn't* work > with nsRefPtr (see end of message for the test code). I'm guessing > because of: > > http://dxr.mozilla.org/mozilla-central/source/mfbt/RefPtr.h?from=RefPtr&case=true#239
But that's an implicit constructor that's causing extra refcount traffic, which is one of the things we didn't want here. (Also, it's another implicit constructor; yikes!) -David -- 𝄞 L. David Baron http://dbaron.org/ 𝄂 𝄢 Mozilla https://www.mozilla.org/ 𝄂 Before I built a wall I'd ask to know What I was walling in or walling out, And to whom I was like to give offense. - Robert Frost, Mending Wall (1914)
signature.asc
Description: Digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform