forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1715414 - Start PBackground earlier in content processes. r=nika
Previously we were staring `PBackground` in content processes in response to receiving the `SetXPCOMProcessAttributes` IPC message, which is sent immediately after the process is launched. Meanwhile, the idle scheduler tries to use PBackground when the main thread considers itself idle. But if thread scheduling is such that the content process main thread becomes idle before the IPC I/O thread has received and dispatched that message, then we have a problem (signaled by an assertion failure). This patch moves content process `PBackground` startup earlier, to the end of `ContentProcess::Init`; that point is after enough of IPC and XPCOM is started for it to work, but before we start spinning the main thread event loop. Differential Revision: https://phabricator.services.mozilla.com/D126144
- Loading branch information
Showing
3 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters