Closed Bug 387005 Opened 17 years ago Closed 17 years ago

explain expected garbage due to unexplained reference counts better

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

Attachments

(2 files)

Attached patch patchSplinter 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 on attachment 271098 [details] [diff] [review]
patch

Fine by me, whatever helps!
Attachment #271098 - Flags: review?(graydon) → review+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
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?
Attachment #271387 - Flags: review? → review?(graydon)
Attachment #271387 - Flags: review?(graydon) → review+
Followup checked in (with one additional comment, too).
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: