HeapSnapshot can miss nodes
Categories
(DevTools :: Memory, task, P2)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(1 file)
When I enable the baseline interpreter in the browser I get a failure in both of the test_MemoryActor_saveHeapSnapshot_0*.js xpcshell tests.
I think the problem is the pair of lines here: https://searchfox.org/mozilla-central/rev/f372470e10c8cb0691681603a1d6324dee5b3b8a/devtools/shared/heapsnapshot/HeapSnapshot.cpp#1287,1290
ShouldIncludeEdge is based on the |origin| Node in addition to the referent, but that seems wrong because it doesn't interact well with the |first| argument passed to operator(): if the first time we visit the node ShouldIncludeEdge returns false, and later it would have returned true, we can add an edge without adding the referent.
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Because ShouldIncludeEdge considers the |origin| node as well, it's not sufficient
to use the |first| argument passed to the function as that's only based on the edge's
referent node.
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 4•6 years ago
|
||
bugherder |
Description
•