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 > > 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<https://lists.mozilla.org/listinfo/dev-platform> > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform