Sandor Molnar
a6483a7c7a
Backed out 4 changesets (bug 1704923) for causing multiple failures in js::wasm::CompilerEnvironment::computeParameters. CLOSED TREE
...
Backed out changeset 498f9f3927f9 (bug 1704923)
Backed out changeset 9eabc7fc9b81 (bug 1704923)
Backed out changeset fedb48e21c75 (bug 1704923)
Backed out changeset 59c3af3d6e7f (bug 1704923)
2021-06-03 12:02:43 +03:00
Jon Coppeard
1794df3261
Bug 1704923 - Pass the number of threads when setting up an external thread pool r=sfink,bas
...
The JS helper thread system needs to know how many threads are available, in
particular because parallel Wasm compilation needs at least two threads to
avoid deadlock. This adds a method to get the count from TaskController and
passes it through to the JS engine when setting up the thread pool.
Differential Revision: https://phabricator.services.mozilla.com/D116220
2021-06-03 07:31:31 +00:00
Olli Pettay
662d5c8c34
Bug 1713320, ensure idle tasks get run, r=bas
...
If IdleTaskManager is suspended and non-idle task _is_run_, nothing seems to guarantee idle tasks get run later.
Calling UpdateCachedIdleDeadline triggers child->parent->child ipc messages if needed and ends up enabling
IdleTaskManager.
Differential Revision: https://phabricator.services.mozilla.com/D116316
2021-05-31 13:32:36 +00:00
Bas Schouten
4b6b949f59
Bug 1640852: Grab IVirtualDesktopManager object off the main thread on the creation of the first nsWindow. r=mikedeboer,aklotz
...
Differential Revision: https://phabricator.services.mozilla.com/D113446
2021-04-28 12:28:56 +00:00
Paul Bone
58add6dd74
Bug 1705320 - Fix some spelling errors r=mccr8 DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D112155
2021-04-15 13:32:46 +00:00
Sean Feng
2b9405bd6c
Bug 1697585 - Make input tasks can be more strictly aligned with Vsync r=smaug
...
This patch introduces a new way to way to schedule input tasks, such
that input tasks remain at `InputHigh` priority normally, however, when
there's a pending `Vsync` priority task in the task queue, we
increase the priority of input tasks from `InputHigh` to `InputHighest` to
rush processing the pending input tasks.
There are two restrictions to ensure we don't delay vsync too much:
- There's a hard limit duration
- We won't process the input tasks that are newly added after we've
started to process the current number of input tasks
Differential Revision: https://phabricator.services.mozilla.com/D109499
2021-04-14 19:56:42 +00:00
Sean Feng
b543ad6b51
Bug 1697585 - Add VsyncTaskManager r=bas,smaug
...
Introduce a new TaskManager called VsyncTaskManager for
EventQueuePriority::Vsync tasks.
Differential Revision: https://phabricator.services.mozilla.com/D109498
2021-04-14 19:56:42 +00:00
Brindusan Cristian
2e90a569b4
Backed out 5 changesets (bug 1697585) for causing build bustages on nsTimerImpl.h. CLOSED TREE
...
Backed out changeset e9e4a710e7d1 (bug 1697585)
Backed out changeset bc271f42bcb7 (bug 1697585)
Backed out changeset d8516aec6a5e (bug 1697585)
Backed out changeset 0b1bc6cb84af (bug 1697585)
Backed out changeset 074ebebaee27 (bug 1697585)
2021-04-06 17:45:02 +03:00
Sean Feng
e828222dac
Bug 1697585 - Make input tasks can be more strictly aligned with Vsync r=smaug
...
This patch introduces a new way to way to schedule input tasks, such
that input tasks remain at `InputHigh` priority normally, however, when
there's a pending `Vsync` priority task in the task queue, we
increase the priority of input tasks from `InputHigh` to `InputHighest` to
rush processing the pending input tasks.
There are two restrictions to ensure we don't delay vsync too much:
- There's a hard limit duration
- We won't process the input tasks that are newly added after we've
started to process the current number of input tasks
Differential Revision: https://phabricator.services.mozilla.com/D109499
2021-04-06 13:10:51 +00:00
Sean Feng
47ae9f1d7a
Bug 1697585 - Add VsyncTaskManager r=bas,smaug
...
Introduce a new TaskManager called VsyncTaskManager for
EventQueuePriority::Vsync tasks.
Differential Revision: https://phabricator.services.mozilla.com/D109498
2021-04-06 13:10:51 +00:00
Florian Quèze
7ca337c131
Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald.
...
Differential Revision: https://phabricator.services.mozilla.com/D109078
2021-03-22 16:29:52 +00:00
Bas Schouten
bcaf884106
Bug 1691517: Do not crash inside TaskController when the main thread is unavailable. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D105402
2021-02-18 03:53:29 +00:00
Florian Quèze
bf1a24a932
Bug 1688300 - Add 'Runnable' profiler markers showing when runnables are executed and a 'Task' label frame showing which tasks are started by TaskController, r=bas,gerald.
...
Differential Revision: https://phabricator.services.mozilla.com/D102803
2021-01-26 08:57:19 +00:00
Bas Schouten
9af9a0caae
Bug 1685727: Ensure all the thread pool task queue has been cleared before shutting down. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D102327
2021-01-19 19:36:29 +00:00
Bas Schouten
cdf96be47e
Bug 1686222: Ensure proper thread is woken up when a new task is posted. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D102324
2021-01-19 17:15:57 +00:00
Bas Schouten
935ebb4621
Bug 1675073: Manually set the stack size for TaskController pool threads. r=aosmond,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D99611
2020-12-14 01:07:59 +00:00
Bas Schouten
e70364133c
Bug 1680544 - Part 1: Introduce a GetName member for Tasks and implement this for RunnableTask. r=smaug,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D98644
2020-12-04 19:54:18 +00:00
Simon Giesecke
dd3ec81e6a
Bug 1676372 - Avoid including PlatformDecoderModule.h in header files. r=mattwoodrow
...
Differential Revision: https://phabricator.services.mozilla.com/D96544
2020-11-26 13:20:59 +00:00
Bas Schouten
1821cec8c6
Bug 1637592 - Part 2: Register name of new threads in appropriate places for profiler and debugger. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D94655
2020-10-27 15:29:13 +00:00
Bas Schouten
67baa823f5
Bug 1637592 - Part 1: Integrate off main thread task execution into TaskController. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D75105
2020-10-27 15:29:11 +00:00
Denis Palmeiro
5ae019b400
Bug 1673026 - Change type of sCurrentTaskSeqNo to Atomic<uint64_t> r=bas
...
Differential Revision: https://phabricator.services.mozilla.com/D94608
2020-10-23 19:28:22 +00:00
Bas Schouten
73771dfc18
Bug 1669256 - Part 1: Remove AbstractEventQueue and de-templatize ThreadEventQueue. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92709
2020-10-09 17:56:34 +00:00
Bas Schouten
533b15c0d4
Bug 1669214 - Part 4: Add code to forward runnables from EventQueue::PutEvent to the TaskController. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D92453
2020-10-06 19:06:57 +00:00
Bas Schouten
4ce34dc017
Bug 1661881 - Part 2: Make InputTaskManager a global singleton. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D89535
2020-09-14 12:12:06 +00:00
Bas Schouten
2666335291
Bug 1651842: Fix event delay being not/incorrecty reported when using TaskController. r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D83542
2020-07-17 19:21:16 +00:00
Honza Bambas
c78e8399a0
Bug 1651068 - Include Task from TaskController in MOZ_LOG=events, r=bas
...
Differential Revision: https://phabricator.services.mozilla.com/D83065
2020-07-14 16:17:18 +00:00
Bas Schouten
3a6a4d18a0
Bug 1650629: Correctly wait when requested and report whether work was done by ProcessNextEvent when using TaskController. r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D83004
2020-07-09 23:41:15 +00:00
Bas Schouten
67e006395a
Bug 1644292: Duplicate code for runnable telemetry for runnables executed inside TaskController. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D78888
2020-06-09 13:02:37 +00:00
Bas Schouten
c865eb4da9
Bug 1606706 - Part 1: Add new TaskController code to the tree. r=smaug,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D74671
2020-06-03 23:39:58 +00:00
Bogdan Tara
b5e64c8f39
Backed out 2 changesets (bug 1606706) for talos tests timeouts CLOSED TREE
...
Backed out changeset ab3e1a067a71 (bug 1606706)
Backed out changeset c47cf57dab71 (bug 1606706)
2020-06-03 11:51:04 +03:00
Bas Schouten
b4b61e0511
Bug 1606706 - Part 2: Integrate new TaskController code into tree and allow usage by pref. r=smaug,?
...
Differential Revision: https://phabricator.services.mozilla.com/D74672
2020-06-02 11:36:38 +00:00
Bas Schouten
9841cb2725
Bug 1606706 - Part 1: Add new TaskController code to the tree. r=smaug,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D74671
2020-06-02 21:28:24 +00:00