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.

--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to