Open
Bug 716598
Opened 13 years ago
Updated 2 years ago
[meta] Don't add obviously live objects to the cycle collector graph
Categories
(Core :: Cycle Collector, defect)
Core
Cycle Collector
Tracking
()
NEW
People
(Reporter: mccr8, Unassigned)
References
(Depends on 4 open bugs, Blocks 1 open bug)
Details
(Keywords: meta)
If we can tell an object is currently live, then we don't need to add it to the cycle collector graph. The most common instance of this is documents that are currently being displayed. Another example is C++ objects being held alive by marked JS objects. There are also many objects where we can quickly check if they are being held alive by other objects that are obviously alive. Skipping these objects will reduce the size of the cycle collector graph, and avoid traversing their child nodes. There is a danger of introducing transient leaks that don't show up at shutdown.
Smaug has done a lot of these small patches, and I think it makes sense to gather them together. Sorry for the bug spam.
Reporter | ||
Updated•13 years ago
|
Component: XPConnect → XPCOM
QA Contact: xpconnect → xpcom
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Comment 1•13 years ago
|
||
Bug 705371 is more not adding obviously acyclic objects to the graph rather than obviously live, but close enough.
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Updated•13 years ago
|
Updated•2 years ago
|
Severity: normal → S3
Reporter | ||
Updated•2 years ago
|
Component: XPCOM → Cycle Collector
You need to log in
before you can comment on or make changes to this bug.
Description
•