Olli Pettay
eea8aec6c9
Bug 1868744 - If JS engine triggered a GC slice, don't trigger another too soon from CCGCScheduler, r=jonco
...
Differential Revision: https://phabricator.services.mozilla.com/D195755
2023-12-07 12:34:33 +00:00
Tooru Fujisawa
0b409e3235
Bug 1846407 - Use enum class for Task::Run return value. r=bas,win-reviewers,rkraesig
...
Differential Revision: https://phabricator.services.mozilla.com/D185043
2023-10-18 15:23:29 +00:00
Noemi Erli
fc342c9628
Backed out changeset 7718734e95b1 (bug 1846407) for causing bustages in nsWindow.cpp CLOSED TREE
2023-10-18 05:31:49 +03:00
Tooru Fujisawa
bebceb1b21
Bug 1846407 - Use enum class for Task::Run return value. r=bas,win-reviewers,rkraesig
...
Differential Revision: https://phabricator.services.mozilla.com/D185043
2023-10-18 01:54:43 +00:00
Cristian Tuns
457378e9e0
Backed out changeset a44ec30d604f (bug 1846407) for causing build bustages in ScriptLoader.cpp CLOSED TREE
2023-10-17 18:46:25 -04:00
Tooru Fujisawa
83e7121bc5
Bug 1846407 - Use enum class for Task::Run return value. r=bas,win-reviewers,rkraesig
...
Differential Revision: https://phabricator.services.mozilla.com/D185043
2023-10-17 22:16:58 +00:00
Emilio Cobos Álvarez
d02e297b2d
Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
...
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.
I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).
Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Olli Pettay
0a311c4447
Bug 1856559 - Make IdleTaskRunner just dispatch an idle task when possible, r=bas
...
Differential Revision: https://phabricator.services.mozilla.com/D189914
2023-10-05 18:11:12 +00:00
Tooru Fujisawa
268184d652
Bug 1839102 - Use enum class for Task kind. r=bas
...
Differential Revision: https://phabricator.services.mozilla.com/D182980
2023-07-26 05:09:29 +00:00
Sandor Molnar
25031486a3
Backed out changeset b99cc4960043 (bug 1839102) for causing build bustages in idget/windows/nsWindow.cpp CLOSED TREE
2023-07-26 05:53:26 +03:00
Tooru Fujisawa
25becb8a76
Bug 1839102 - Use enum class for Task kind. r=bas
...
Differential Revision: https://phabricator.services.mozilla.com/D182980
2023-07-26 02:26:15 +00:00
serge-sans-paille
1f606e7dbc
Bug 1774864 - Cleanup xpcom/ includes r=sylvestre
...
Differential Revision: https://phabricator.services.mozilla.com/D149671
2022-06-24 07:13:59 +00:00
Olli Pettay
b9786d5d3e
Bug 1754562, make parent process' idle detection be aware of active RefreshDrivers in the other processes, r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D138504
2022-02-26 22:37:03 +00:00
criss
06f4fe1b55
Backed out changeset 39bd7bdd12be (bug 1754562) for causing multiple failures. CLOSED TREE
2022-02-25 13:40:50 +02:00
Olli Pettay
e5d862393e
Bug 1754562, make parent process' idle detection be aware of active RefreshDrivers in the other processes, r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D138504
2022-02-25 10:13:16 +00:00
Steve Fink
e83c6b53a7
Bug 1672121 - Stop sGCRunner GC slice if the IdleTaskRunnerTask gets a RequestInterrupt() call r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D109631
2021-12-22 18:06:06 +00:00
Iulian Moraru
405d36ba49
Backed out 5 changesets (bug 1672121) for various crashes on mozalloc_handle_oom. CLOSED TREE
...
Backed out changeset 117756828ea7 (bug 1672121 )
Backed out changeset 046e37035dbc (bug 1672121 )
Backed out changeset de44a280103b (bug 1672121 )
Backed out changeset 4acf4539a7b4 (bug 1672121 )
Backed out changeset 8001b5433e38 (bug 1672121 )
2021-11-30 02:59:20 +02:00
Steve Fink
e8cd26f5ee
Bug 1672121 - Stop sGCRunner GC slice if the IdleTaskRunnerTask gets a RequestInterrupt() call r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D109631
2021-11-29 19:59:52 +00:00
criss
17b8040dd3
Backed out 2 changesets (bug 1727960) by dev request
...
Backed out changeset 14abef8826d0 (bug 1727960)
Backed out changeset 2817b34b999e (bug 1727960)
2021-09-28 02:27:39 +03:00
Paul Bone
6cd1826aea
Bug 1727960 - Use the start time of an idle task when nsRefreshDriver is ticking r=smaug,
...
Differential Revision: https://phabricator.services.mozilla.com/D123888
2021-09-02 01:17:28 +00:00
Paul Bone
4c54df65f3
Bug 1727960 - Properly detect if nsRefreshDriver is ticking in IdleTaskRunner r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D123887
2021-09-02 01:17:27 +00:00
Paul Bone
4bde95962f
Bug 1718184 - pt 1. IdleTaskRunner now uses TimeDuration r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D118791
2021-07-13 01:42:32 +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
Bas Schouten
63d8265487
Bug 1698191: Convert IdleTaskRunner to use the TaskController API directly. r=smaug,sfink
...
Differential Revision: https://phabricator.services.mozilla.com/D108272
2021-03-16 14:39:45 +00:00
Steve Fink
569f91b935
Bug 1692308 - Add an initial delay to IdleTaskRunner r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D107504
2021-03-12 06:55:46 +00:00
Steve Fink
41aea53b51
Bug 1696456 - Rename budget to minimumUsefulBudget in IdleTaskRunner r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D107239
2021-03-08 16:27:43 +00:00
Steve Fink
1addad3cce
Bug 1678416 - Minor comment fixes r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90901
2020-12-04 16:03:24 +00:00
Steve Fink
52f864b9c8
Bug 1678416 - Implement IdleTaskRunner::SetBudget() and add some comments. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D97670
2020-12-04 16:02:52 +00:00
Razvan Maries
528c4accb5
Backed out 5 changesets (bug 1678416) for build bustages on CCGCScheduler.h. CLOSED TREE
...
Backed out changeset cc5f7ecb3922 (bug 1678416)
Backed out changeset 61d9f960b80e (bug 1678416)
Backed out changeset 882f7ebe33fe (bug 1678416)
Backed out changeset e845a32a60bd (bug 1678416)
Backed out changeset 85f35f5749a0 (bug 1678416)
2020-12-04 04:55:39 +02:00
Steve Fink
f7db20c6c0
Bug 1678416 - Minor comment fixes r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90901
2020-12-04 02:40:29 +00:00
Steve Fink
e00e654139
Bug 1678416 - Implement IdleTaskRunner::SetBudget() and add some comments. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D97670
2020-12-04 02:40:00 +00:00
Karl Tomlinson
54446d9be0
Bug 1119956 introduce DiscardableRunnable for tasks that might not run but might not implement cancellation r=asuth,sg
...
Classes that inherit from DiscardableRunnable are only promising that it is OK
for Run() to be skipped, rather than promising that Cancel() is effective.
Differential Revision: https://phabricator.services.mozilla.com/D98117
2020-12-02 09:36:25 +00:00
Brindusan Cristian
4b189b50e8
Backed out changeset 16291a47acda (bug 1662254) for causing Bug 1677764. a=backout DONTBUILD
2020-11-19 21:43:10 +02:00
Steve Fink
0e7dbfc3b7
Bug 1662254 - Merge ICCRunner and CCRunner into a single CCRunner r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90633
2020-11-13 19:38:02 +00:00
Bogdan Tara
a902379665
Backed out 10 changesets (bug 1662254) for lint failure on generate_static_pref_list.py CLOSED TREE
...
Backed out changeset 972e63387191 (bug 1662254)
Backed out changeset 3a9d6f0aa380 (bug 1662254)
Backed out changeset 4b3ffe7fe1af (bug 1662254)
Backed out changeset 4834b1025611 (bug 1662254)
Backed out changeset ec1f7afe8a2d (bug 1662254)
Backed out changeset c7a6b927b1de (bug 1662254)
Backed out changeset 2427d85b2605 (bug 1662254)
Backed out changeset 979bf4ac97bb (bug 1662254)
Backed out changeset 3e443333c636 (bug 1662254)
Backed out changeset a5261578ebfc (bug 1662254)
2020-11-12 23:59:07 +02:00
Steve Fink
dc83dcff99
Bug 1662254 - Minor comment fixes r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90901
2020-11-12 19:05:08 +00:00
Steve Fink
9f1ec52ea3
Bug 1662254 - Merge ICCRunner and CCRunner into a single CCRunner r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D90633
2020-11-12 19:05:00 +00:00
Andreas Farre
4ca438fe5b
Bug 1620594 - Part 3: Use default target for timers using SystemGroup. r=nika
...
Depends on D67632
Differential Revision: https://phabricator.services.mozilla.com/D67633
2020-04-07 15:16:46 +00:00
Olli Pettay
94d8b89f5c
Bug 1515216, ensure IdleTaskRunners are added only once to RefreshDriver's idle runnable list, r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D27424
2019-04-15 15:41:15 +00:00
Randell Jesup
682721b83e
Bug 1522150: Add a DeferredTimers queue ahead of the normal Idle EventQueue r=froyd
...
* * *
Bug 1522150: Rename NS_IdleDispatch* functions since they take queue identifiers r=froyd
2019-01-26 12:18:05 -05:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Nathan Froyd
02d62d841a
Bug 1499725 - make IdleTaskRunner timers more efficient; r=farre
...
Instead of creating a timer and then setting the timer's target, we can
determine the timer's target and pass it in directly when the timer is
created. This reordering of steps is slightly more efficient, since
SetTarget() is both a virtual call and requires locking, both of which
can be skipped if we know the target at timer creation time. If we're
reusing the timer, we also don't need to repeatedly set the timer's
target: we can set the target once at timer creation, and then be done.
We can do this safely here because mTaskCategory doesn't change
throughout the life of the IdleTaskRunner; we make mTaskCategory `const`
to make this more explicit to the reader.
2018-10-22 09:44:50 -04:00
Olli Pettay
0eca989315
Bug 1468112 - Use runnable name also for IdleTaskRunner's timer, r=farre
2018-06-12 12:17:08 +03:00
Kris Maglione
f0246b2f9c
Bug 1404198: Part 2b - Switch to NS_NewTimer* in xpcom. r=njn
...
MozReview-Commit-ID: BEtHEpOmT1E
2017-10-15 23:11:22 -07:00
Michael Layzell
e82670034d
Bug 1393581 - Name all IdleTaskRunner runnables, r=smaug
2017-08-25 11:24:27 -04:00
Henry Chang
503780c382
Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug
...
This patch is mainly to make IdleTaskRunner reusable by nsHtml5TreeOpExecutor.
The only necessary work to that purpose is to remove the dependency of
sShuttingDown, which was a static variable in nsJSEnvironment.cpp.
The idea is to have a "MayStopProcessing" as a callback for the consumer to
return sShuttingDown.
In addition to sShuttingDown, we use std::function<bool()> as the runner
main callback type.
MozReview-Commit-ID: FT2X1unSvPS
2017-07-12 09:23:15 +08:00
Henry Chang
41b3f2a1c4
Bug 1355746 - Part 1. Rename CollectRunner to IdleTaskRunner and move to xpcom/threads/IdleTaskRunner.h/cpp r=smaug
...
Nothing is changed in this patch except for renaming and code move around.
The strategy is to have the final file setup in this patch without any
detail change. The actual code change will be in the next patch so that
we can focus on reviewing the diff in the next patch regarding IdleTaskRunner.
MozReview-Commit-ID: 4Bul9mZ7z1n
2017-08-07 13:50:47 +08:00
Sebastian Hengst
874e92f00c
Backed out changeset 733c828d5ba3 (bug 1355746) for frequently failing mochitest dom/html/test/test_fullscreen-api.html and devtools' browser_service_workers_multi_content_process.js, both on Linux. r=backout a=backout
...
MozReview-Commit-ID: 7VDiCD8uwOy
2017-06-21 19:51:13 +02:00
Sebastian Hengst
53f395db6a
Backed out changeset 38722eed8c8a (bug 1355746)
...
MozReview-Commit-ID: 1HcpK10x0V4
2017-06-21 19:49:04 +02:00
Henry Chang
03c7b1fd9e
Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug
...
This patch is mainly to make IdleTaskRunner reusable by nsHtml5TreeOpExecutor.
The only necessary work to that purpose is to remove the dependency of
sShuttingDown, which was a static variable in nsJSEnvironment.cpp.
The idea is to have a "ShouldCancel" as a callback for the consumer to
return sShuttingDown.
In addition to sShuttingDown, we use std::function<bool()> as the runner
main callback type.
MozReview-Commit-ID: FT2X1unSvPS
2017-06-15 15:51:29 +08:00