Closed Bug 1703181 Opened 4 years ago Closed 4 years ago

Migrate HelperThreadPool to TaskController

Categories

(Core :: XPCOM, task, P3)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

HelperThreadPool will dispatch tasks to nsThreadPool, however, nsThreadPool cannot process tasks dispatched during shutdown.
We should try to dispatch tasks to TaskController.

Severity: -- → S4
Priority: -- → P3

We also call setHelperThreadTaskCallback earlier, now it's done in
XPCJSContext::Initialize. So GlobalHelperThreadState could know earlier
if we're dispatching to a external thread pool.

Pushed by allstars.chh@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f552efcd43a9 Part 1: Remove HelperThreadPool. r=KrisWright https://hg.mozilla.org/integration/autoland/rev/f4788d23a4da Part 2: Dispatch to TaskController. , r=KrisWright
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: