http://codereview.chromium.org/910002/diff/10001/src/profile-generator.cc#newcode143
src/profile-generator.cc:143: callback->AfterChildTraversed(parent.node,
current.node);
If the callback is a DeleteNodesCallback, then we're passing a deleted
node here into AfterChildTraversed due to line 140, no? I don't know how
this code works, can that situation occur? (CID: 9378)
http://codereview.chromium.org/910002/diff/10001/src/profile-generator.cc#newcode143
src/profile-generator.cc:143: callback->AfterChildTraversed(parent.node,
current.node);
On 2011/03/25 15:18:48, Finnur wrote:
> If the callback is a DeleteNodesCallback, then we're passing a deleted
node here
> into AfterChildTraversed due to line 140, no? I don't know how this
code works,
> can that situation occur? (CID: 9378)
You are right. But in DeleteNodesCallback, AfterChildTraversed is empty,
so passing a stale pointer to it doesn't cause any harm. But I should
add a comment about it, I think. Thanks for noticing!
On Mon, Mar 28, 2011 at 13:24, <sgj...@chromium.org> wrote:
> LGTM
>
> http://codereview.chromium.org/910002/
>