Heap snapshot shows cyclic retaining path |
||||
Issue descriptionThe attached screenshot shows a retaining path where the same node appears twice. This looks like a bug. Steps to reproduce: 1. Take snapshot of an webpage (e.g. attached simple.html). 2. Select "(system) -> system / NativeContext @xxxx" node. 3. Look at its first retainer. Expected: the first retainer is the global object (Window) since its depth is 1 and the depth of the native context is 2. Actual: the first retainer is the context of ThrowTypeError (with depth "-"). Expanding the retainer tree shows a cycle.
,
Feb 16 2017
,
Feb 17 2017
alph@ could you please take a look? Is this intended behavior?
,
Feb 22 2017
This is an intended behavior. It stops at the node which is already present in the path. If the node was omitted you couldn't tell why the path breaks at this point.
,
Feb 22 2017
If the node is a root, then I think the expected behavior is to not output any retaining path since there is no retainer. Otherwise, it can be confused as node retaining itself.
,
Feb 23 2017
This view shows all the nodes that link to the node you selected in the top view. This allows you to track all the paths if you need to. |
||||
►
Sign in to add a comment |
||||
Comment 1 by u...@chromium.org
, Feb 16 2017