Closed Bug 763776 Opened 12 years ago Closed 12 years ago

refactor nsXPConnect::Traverse

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(6 files)

This function (which traces through JS objects for the cycle collector) is pretty big, but there are a few separate steps it takes, so I'd like to break it up a bit. There's probably also some other cleanup I can do at the same time. This will also make it easier for me to alter its behavior for CompartmentParticipant in bug 754495.
This causes slightly more work, but only when we're logging.
Assignee: nobody → continuation
This will be bit rotted by bug 616262, but only in a trivial way.
Attached patch part 4: minor fiddly cleanup (deleted) — Splinter Review
Comment on attachment 633608 [details] [diff] [review] part 1: add redundant vars to enable outlining Please review the rest of the patches, too, I just think there's no need to spam the bug by setting the review flag on every piece.
Attachment #633608 - Flags: review?(wmccloskey)
I'll leave the main thread cleanup stuff for another patch, after XPC singlethreading lands. Or maybe it will just fix it. Either way.
No longer depends on: 763773
Comment on attachment 633608 [details] [diff] [review] part 1: add redundant vars to enable outlining Is this all you wanted me to review? As an aside, I think it would be nice if we could replace uses of |clazz| in xpconnect with |clasp|, which is what we use in the JS engine.
Attachment #633608 - Flags: review?(wmccloskey) → review+
Sure, I can do that for the code I touch in these patches.
Attached patch part 6: clazz to clasp (deleted) — Splinter Review
Attachment #634172 - Flags: review?(wmccloskey)
Comment on attachment 634172 [details] [diff] [review] part 6: clazz to clasp Excellent, thanks!
Attachment #634172 - Flags: review?(wmccloskey) → review+
Thanks for the reviews! Try run looked good. Landed the patch in one chunk. https://hg.mozilla.org/integration/mozilla-inbound/rev/9118e53405c7
Target Milestone: --- → mozilla16
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: