Bill McCloskey
ba4c30b16d
Bug 1385413 - Remove thread parameter from onDispatchedEvent (r=erahm)
...
This parameter isn't used by any implementation of onDispatchedEvent,
and keeping the parameter makes later refactorings in this bug more difficult.
MozReview-Commit-ID: 90VY2vYtwCW
2017-07-28 13:09:06 -07:00
Carsten "Tomcat" Book
26135cd76d
Backed out changeset 284af26c1b53 (bug 1351148)
2017-07-28 09:20:27 +02:00
Stone Shih
e0dd0293e8
Bug 1351148 Part2: Add a priority queue for input events. r=smaug.
...
MozReview-Commit-ID: 5ud1Ex9UNVo
2017-03-21 15:44:12 +08:00
Michael Layzell
8f85c92d24
Bug 1380096 - Avoid non-null terminated strings and heap for main thread runnable name, r=erahm
...
For some reason, I continuously ran into windows x64 specific failures when
trying to read this heap allocated data while the main thread was paused. I
don't know specifically how this happened, but I am able to avoid it by instead
directly allocating the buffer in a `mozilla::Array` in static storage, and
copying that data instead.
MozReview-Commit-ID: 473d6IpHlc4
2017-07-17 16:30:02 -04:00
Sebastian Hengst
5a9c94f0aa
Backed out changeset 8fe427b20f90 (bug 1380096) for crashing Marionette test_refresh_firefox.py TestFirefoxRefresh.testReset and mochitests on Windows x64. r=backout on a CLOSED TREE
2017-07-12 23:36:58 +02:00
Michael Layzell
cd8964a17f
Bug 1380096 - Don't require that sMainThreadRunnableName is null-terminated, r=erahm
...
MozReview-Commit-ID: 9Zo1vjmKzZC
2017-07-12 15:10:44 -04:00
Michael Layzell
28279ac02e
Bug 1377344 - Record the name of the currently running Runnable on thread hangs for BHR, r=njn, r=froydnj
...
MozReview-Commit-ID: IYRHh6jiTeo
2017-07-04 15:16:19 -04:00
Bill McCloskey
ce42826bdf
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Andreas Farre
3211aa3b33
Bug 1368072 - Move idle dispatch to thread manager. r=froydnj
...
Also exposes idle dispatch with timeout.
2017-06-22 11:14:10 +02:00
Phil Ringnalda
483d45dcb9
Backed out 3 changesets (bug 1368072) for colliding with a new use of the thing it was renaming
...
Backed out changeset 1d7e008d7d70 (bug 1368072)
Backed out changeset c4a1ddf9be0d (bug 1368072)
Backed out changeset ba1cdae5a8d6 (bug 1368072)
2017-06-21 23:28:37 -07:00
Carsten "Tomcat" Book
238bf154d5
Backed out changeset 4f6302a98ae4 (bug 1372405)
2017-06-21 13:59:26 +02:00
Andreas Farre
33d74bc42c
Bug 1368072 - Move idle dispatch to thread manager. r=froydnj
...
Also exposes idle dispatch with timeout.
2017-06-21 12:36:41 +02:00
Phil Ringnalda
27342433a0
Merge m-c to m-i
...
MozReview-Commit-ID: 5k3Ip7tGRsC
2017-06-20 21:49:33 -07:00
Bill McCloskey
67e8af4720
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Phil Ringnalda
bc4a75b212
Backed out 3 changesets (bug 1368072) for timeouts in test_TelemetrySession.js and test_fullscreen-api.html and unhandled "TypeError: Services.tm.mainThread.idleDispatch is not a function" promise rejections
...
Backed out changeset 357635c84e49 (bug 1368072)
Backed out changeset 1797afe16a2a (bug 1368072)
Backed out changeset 4782401394a9 (bug 1368072)
MozReview-Commit-ID: 6kdcSkERjTD
2017-06-20 21:41:14 -07:00
Andreas Farre
6ff2e1ad99
Bug 1368072 - Move idle dispatch to thread manager. r=froydnj
...
Also exposes idle dispatch with timeout.
2017-06-19 06:36:00 +02:00
Carsten "Tomcat" Book
bbe9441993
Backed out changeset 9846de3bd954 (bug 1372405)
2017-06-20 08:27:02 +02:00
Bill McCloskey
f69608368b
Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
...
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Ehsan Akhgari
1b67769a4a
Bug 1371728 - Don't honor the idle period during shutdown; r=smaug
2017-06-14 08:27:39 -04:00
Bill McCloskey
dfef750c32
Bug 1361164 - Add Get{Current,Main}ThreadEventTarget getters to replace NS_Get{Current,Main}Thread (r=froydnj)
...
We want people to transition to using event targets rather than threads when possible. These
getters should make it easier to make that change.
MozReview-Commit-ID: 3bN4tRgJjBL
2017-06-12 20:20:08 -07:00
Bill McCloskey
1ec9f35fbb
Bug 1361164 - Add nsISerialEventTarget (r=froydnj)
...
MozReview-Commit-ID: 8y1GdEGCPSB
2017-06-12 20:20:08 -07:00
Bill McCloskey
04b1343a42
Bug 1361164 - Add infallible IsOnCurrentThread to nsIEventTarget (r=froydnj)
...
MozReview-Commit-ID: 12bk9hQ7Wnv
2017-06-12 20:20:08 -07:00
Andreas Farre
9363769bae
Bug 1292600 - Add telemetry to measure how idle budgets are used. r=froydnj, data-r=bsmedberg
2017-06-07 16:14:42 +02:00
Ehsan Akhgari
f6cad3bb9c
Bug 1368286 - Take the idle queue into account in nsThread::HasPendingEvents(); r=smaug
2017-06-06 12:37:27 -04:00
Ehsan Akhgari
47eb542d6d
Backout bug 1368286 because of event processing regressions with nested event loops on OSX a=RyanVM
...
Landing on a CLOSED TREE
2017-05-31 22:47:47 -04:00
Ehsan Akhgari
06a20a9faf
Bug 1368286 - Take the idle queue into account in nsThread::HasPendingEvents(); r=smaug
2017-05-29 14:34:34 -04:00
Andreas Farre
4cb28e7f9e
Bug 1311425 - Make idle callbacks aware of nsITimers, r=froydnj
2017-05-24 21:12:55 -04:00
Olli Pettay
4a39d744a0
Bug 1358476, add support for timeout when doing idle dispatch, p=farre,smaug, r=nfroyd
2017-05-24 17:34:50 -04:00
Andreas Farre
fdcfcb9de0
Bug 1353206 - Expose nsIThread::idleDispatch to script. r=froydnj
2017-05-24 12:16:04 +02:00
Andreas Farre
41eb664f21
Bug 1366750 - Rename nsIIncrementalRunnable to nsIIdleRunnable. r=smaug
...
The name nsIIdleRunnable makes more sense, since its main use is in
nsIThread::idleDispatch.
MozReview-Commit-ID: H6qchxKnt7a
2017-05-23 13:24:25 +02:00
Bill McCloskey
ca7692f2b5
Bug 1351021 - Compute mean time between unlabeled (r=froydnj,data-r=bsmedberg)
...
Accumulates the time in between running unlabeled runnables in a histogram. This
measurement will be useful to see how much of a win the cooperative scheduler
will be, assuming we label no more runnables.
MozReview-Commit-ID: 9lgoGJcXLP9
2017-05-17 11:47:40 -07:00
Nathan Froyd
3b526b2200
Bug 1359490 - add an event loop spinning abstraction function; r=gerald
...
This function is arguably nicer than calling NS_ProcessNextEvent
manually, is slightly more efficient, and will enable better auditing
for NS_ProcessNextEvent when we do Quantum DOM scheduling changes.
2017-05-15 09:34:19 -04:00
Cervantes Yu
6bcb4f30a4
Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
...
NS_SetCurrentThreadName() is added as an alternative to PR_SetCurrentThreadName()
inside libxul. The thread names are collected in the form of crash annotation to
be processed on socorro.
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Michael Layzell
67756b2a45
Bug 1168169 - Mark nsThreadShutdownContext::joiningThread as MOZ_UNSAFE_REF, r=froydnj
...
MozReview-Commit-ID: 16ebijitZcz
2017-04-17 14:57:25 -04:00
Bill McCloskey
38109b908e
Bug 1350436 - Rename ValidatingDispatcher to SchedulerGroup (r=froydnj)
...
MozReview-Commit-ID: 1gWB9ZLPQfY
2017-04-10 16:49:39 -07:00
Sebastian Hengst
189424cb45
Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE
2017-04-10 19:05:44 +02:00
Cervantes Yu
c2014c712d
Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
...
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Carsten "Tomcat" Book
e6d6caf1f8
Backed out changeset 7a52d887bcea (bug 1024669) for bustage
2017-04-10 11:43:49 +02:00
Cervantes Yu
eb13868db5
Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
...
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Eric Rahm
f60adcc637
Bug 1353544 - Replace usage of PR_BEGIN_MACRO in xpcom. r=froydnj
2017-04-05 18:06:44 -07:00
David Major
7c0497b430
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Iris Hsiao
22d2818760
Backed out 12 changesets (bug 1344629) for stylo build bustage
...
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
Blake Kaplan
bd2ab1bc6c
Bug 1347007 - Register with the profiler after doing so for the ThreadManager. r=njn
...
MozReview-Commit-ID: 6gtDxmlgOta
2017-03-13 15:03:24 -07:00
David Major
a660713d2b
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Bill McCloskey
3fdff512cf
Bug 1337537 - Assert that runnables labeled with a given TabGroup never touch other TabGroups (r=ehsan)
...
MozReview-Commit-ID: sOdn9e5f57
2017-02-13 17:02:57 -08:00
Bill McCloskey
3955b64bb8
Bug 1331804 - Measure runnable times keyed by name for telemetry (r=ehsan,bsmedberg)
...
MozReview-Commit-ID: FQmJKwEgBdv
2017-01-24 16:34:37 -08:00
Bill McCloskey
a82c8d5566
Bug 1331804 - Add more runnable names (r=ehsan)
...
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 16:34:37 -08:00
Wes Kocher
ac78cfc4f2
Backed out 8 changesets (bug 1331804, bug 1332100) for windows vm debug dt5 failures a=backout
...
Backed out changeset 8bf7f0e27c6c (bug 1331804)
Backed out changeset 600c0b9026c2 (bug 1331804)
Backed out changeset 3a5b5b9ecace (bug 1331804)
Backed out changeset c76432c9954e (bug 1331804)
Backed out changeset 46a9096745e7 (bug 1332100)
Backed out changeset 8b751230fa23 (bug 1331804)
Backed out changeset 2810212347fd (bug 1331804)
Backed out changeset be72b7763910 (bug 1331804)
MozReview-Commit-ID: Ywdsr4GZ4a
2017-01-24 15:12:21 -08:00
Bill McCloskey
37ddff5138
Bug 1331804 - Measure runnable times keyed by name for telemetry (r=ehsan,bsmedberg)
...
MozReview-Commit-ID: FQmJKwEgBdv
2017-01-24 10:04:55 -08:00
Bill McCloskey
e584c01765
Bug 1331804 - Add more runnable names (r=ehsan)
...
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 10:04:55 -08:00