Closed
Bug 387005
Opened 17 years ago
Closed 17 years ago
explain expected garbage due to unexplained reference counts better
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha8
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
Attachments
(2 files)
9.78 KB,
patch
|
graydon
:
review+
|
Details | Diff | Splinter Review |
2.06 KB,
patch
|
graydon
:
review+
|
Details | Diff | Splinter Review |
Currently, ExplainExpectedGarbage() is only useful on shutdown, when basically everything is expected to be garbage, since it warns about anything that is reachable from something expected to be garbage that has external references. This patch reverses that, and makes it warn only about things from which the expected garbage can be reached. I haven't gotten anything useful out of the patch yet, though. That could mean there's something wrong with it, or it could mean that there are just a lot of extra references floating around in certain cases because of something key that we're failing to traverse.
Attachment #271098 -
Flags: review?(graydon)
Comment 1•17 years ago
|
||
Comment on attachment 271098 [details] [diff] [review] patch Fine by me, whatever helps!
Attachment #271098 -
Flags: review?(graydon) → review+
Assignee | ||
Comment 2•17 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•17 years ago
|
||
As a followup: now that this is more accurate, including more in the graph always gives diagnostics that are at least as good, if not better, so we should include the roots from suspectCurrent calls when building the graph used by ExplainLiveExpectedGarbage.
Attachment #271387 -
Flags: review?
Assignee | ||
Updated•17 years ago
|
Attachment #271387 -
Flags: review? → review?(graydon)
Updated•17 years ago
|
Attachment #271387 -
Flags: review?(graydon) → review+
Assignee | ||
Comment 4•17 years ago
|
||
Followup checked in (with one additional comment, too).
Updated•17 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•