Open
Bug 423521
Opened 16 years ago
Updated 2 years ago
improve XUL template CC traversal
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
NEW
People
(Reporter: sayrer, Unassigned)
Details
Attachments
(1 file)
29.06 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
there's a bunch of stuff in here we can add
Reporter | ||
Comment 1•16 years ago
|
||
Reporter | ||
Comment 2•16 years ago
|
||
Comment on attachment 310072 [details] [diff] [review] xul templates (wip) Nothing wrong with this code. We should take it.
Attachment #310072 -
Flags: superreview?(jonas)
Attachment #310072 -
Flags: review?(bent.mozilla)
Have you checked that the classes can deal with all those members being null. Often large parts of the code can get executed during teardown so it needs to be prepared for the various members having been unlinked.
Comment on attachment 310072 [details] [diff] [review] xul templates (wip) So I've been running with this patch for a while without any crashes and it all looks ok to me.
Attachment #310072 -
Flags: review?(bent.mozilla) → review+
Still want answer to comment 3 before sr'ing
Comment 6•16 years ago
|
||
I just took a quick look, it doesn't make sense to note objects as children if they don't participate in cycle collection (for example mEvaluator in nsXULTemplateQueryProcessorXML). You're also noting some objects that should probably be cycle collected, but I'd rather start noting them when we add traversal code to them (for example mBoxObject in nsXULTreeBuilder), but it'll fan out quickly then (plenty of other non-participating objects hold box objects for example). And as Jonas said, more unlinking can be scary. It's ok if you've verified that all code can deal with those objects being null, the reason why our unlink code doesn't match the traverse code is exactly because we didn't do that (tedious) checking.
Reporter | ||
Comment 7•16 years ago
|
||
(In reply to comment #6) > You're also noting some objects that should > probably be cycle collected, but I'd rather start noting them when we add > traversal code to them Definitely did that. Your approach makes sense. > And as Jonas said, more unlinking can be scary. It's ok if you've verified that > all code can deal with those objects being null Evaluating the unlink methods required reading the teardown methods these objects have, so I did a decent job there, I think. Will take another pass at this.
Comment on attachment 310072 [details] [diff] [review] xul templates (wip) Resetting request waiting for more information (comment 3)
Attachment #310072 -
Flags: superreview?(jonas)
Comment 9•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•