Jonas Sicking wrote:
On Dec 18, 2012 4:15 AM, "Neil" <n...@parkwaycc.co.uk> wrote:
While investigating the possibility of switching nsCOMArray away from
nsVoidArray it occurred to me that nsCOMArray takes steps to ensure internal
consistency before releasing removed elements; this is because it's potentially
possible for Release() to invoke arbitrary code; if this code ends up
attempting to access the original nsTArray then all bets are off. I think we've
had reentrancy bugs before so we could have them again.
Yes, though this is not specific to nsTArrays
We don't exactly have a large number of array types that we use to store
owning references to XPCOM objects...
--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform