Closed Bug 1367164 Opened 7 years ago Closed 7 years ago

Use IdleDispatch for async snow white killer on main thread

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch idle_snow_white.diff (obsolete) — Splinter Review
Bug 1311425 will make this stuff work nicer way, but this should be still ok even now.
Note, I'm explicitly not using deadlines here, just move the stuff to start at idle period to keep this simple.
Possible followup bugs can use deadlines, but I'm not sure how useful that would be in this case since if there are lots of objects to delete, we shouldn't postpone that work too much.

In cases there are no idle periods, forget skippable and CC runs will kill snow white objects.

Let's see what tryserver says about this
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dc6781600b0c947ffc4b49485844d759d60bfe1d
Attachment #8870510 - Flags: review?(continuation)
How is labeling supposed to work with idle callbacks?
As of now IdleDispatch is nsIThread level concept, not nsIEventTarget.
Attachment #8870510 - Flags: review?(continuation) → review+
As discussed in IRC, we need some additional work to make labeling stuff work with idle dispatch. Bill said it would be better to do this now, and fix the idle dispatch stuff later.
Attached patch v2Splinter Review
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d36ee6a04782c8ee4e818790c33f4456b4666185

Maybe try likes this better.
Things brings back the old dispatch-to-current-logic which was there before labeling.
Attachment #8870510 - Attachment is obsolete: true
Attachment #8870534 - Flags: review?(continuation)
Attachment #8870534 - Flags: review?(continuation) → review+
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0daf960b8d19
Use IdleDispatch for async snow white killer on main thread, r=mccr8
https://hg.mozilla.org/mozilla-central/rev/0daf960b8d19
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Blocks: 1366803
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: