Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Issue 221923006: Mark link between (Detached DOM Trees) and Detached DOM Tree as weak. (Closed)

Created:
6 years, 8 months ago by loislo
Modified:
6 years, 8 months ago
Reviewers:
alph, yurys
CC:
v8-dev
Visibility:
Public.

Description

Mark link between "(Detached DOM Trees)" and "Detached DOM Tree" as weak. With this fix "(Detached DOM Trees)" will not appear in the retainers tree of a detached tree. BUG=

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/heap-snapshot-generator.cc View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 7 (0 generated)
loislo
6 years, 8 months ago (2014-04-02 14:15:53 UTC) #1
loislo
6 years, 8 months ago (2014-04-02 14:16:41 UTC) #2
alph
https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc File src/heap-snapshot-generator.cc (right): https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc#newcode2411 src/heap-snapshot-generator.cc:2411: HeapGraphEdge::kWeak, May be shortcut?
6 years, 8 months ago (2014-04-02 14:19:09 UTC) #3
loislo
On 2014/04/02 14:19:09, alph wrote: > https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc > File src/heap-snapshot-generator.cc (right): > > https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc#newcode2411 > ...
6 years, 8 months ago (2014-04-02 14:43:09 UTC) #4
yurys
On 2014/04/02 14:43:09, loislo wrote: > On 2014/04/02 14:19:09, alph wrote: > > > https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc ...
6 years, 8 months ago (2014-04-02 15:19:09 UTC) #5
alph
On 2014/04/02 14:43:09, loislo wrote: > On 2014/04/02 14:19:09, alph wrote: > > > https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc ...
6 years, 8 months ago (2014-04-02 17:27:05 UTC) #6
loislo
6 years, 8 months ago (2014-04-03 07:29:13 UTC) #7
On 2014/04/02 17:27:05, alph wrote:
> On 2014/04/02 14:43:09, loislo wrote:
> > On 2014/04/02 14:19:09, alph wrote:
> > >
> >
>
https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator.cc
> > > File src/heap-snapshot-generator.cc (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/221923006/diff/1/src/heap-snapshot-generator....
> > > src/heap-snapshot-generator.cc:2411: HeapGraphEdge::kWeak,
> > > May be shortcut?
> > 
> > We shows Shortcut edges in the retainers tree.
> 
> That's fine. I don't like idea of dropping the real retaining edges from the
> retaining tree.
> I'd like to propose another solution. ptal
> https://codereview.chromium.org/222443003/

Sounds like we are solving two different problems.

My problem:
In the snapshot we have artificial nodes or "pseudo roots"
that we need for the containment view like "(Detached DOM Trees)" etc.
These nodes don't really exist and do not retain anyone.

In the current implementation we use kInternal edges for the links between
these nodes and their children. It breaks the idea that these "pseudo roots"
don't retain anyone. So I'm trying to fix this.

You problem:
retainers from debugger root that could be solved by your patch.

Powered by Google App Engine
This is Rietveld 408576698