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
Markus Stange
4c0c6e759d
Bug 1323100 - Register named threads with the profiler. r=froydnj
...
MozReview-Commit-ID: FbE4BTcnfEh
2016-12-14 19:50:11 -05:00
Markus Stange
02d82aa372
Bug 1323100 - Add nsThreadManager::NewNamedThread API. r=froydnj
...
The point of this exercise is to make the thread name available in the thread
func of the thread, so that we can register the thread with the profiler from
the very start of its lifetime, and so that registration and unregistration
can be inside the same function.
MozReview-Commit-ID: DiiMKUQVr55
2016-12-20 15:10:20 +01:00
Andreas Farre
bc0362c532
Bug 1313989 - Remove MutexAutoUnlock in nsThread::GetIdleEvent. r=froydnj,mattwoodrow
...
Rewrite VsyncRefreshDriverTimer::GetTimerRate to always use the cached
value of the vsync rate in VsyncChild to avoid processing events on
the main thread.
Since VsyncChild::GetTimerRate is called in VsyncRefreshDriverTimer's
constructor, that cached value is bound to be set soon. This should
make the period of time we need to guess in
VsyncRefreshDriverTimer::GetTimerRate very short.
MozReview-Commit-ID: 1bnHNXAP8jY
2016-11-10 10:01:51 +01:00
Olli Pettay
b7858f5e83
bug 1306591, add secondary event queue to let high priority messages to be processed sooner, r=billm
2016-11-08 14:05:45 +02:00
Andreas Farre
8b9e575377
Bug 1315187 - Assert that thread calling IdleDispatch is the thread that will run it. r=smaug
...
MozReview-Commit-ID: LGrKeIUaGCD
2016-11-04 09:08:31 +01:00
Andreas Farre
1546ce5e78
Bug 1198381 - Extend nsIThread with idleDispatch, r=froydnj,smaug
...
The intent of idleDispatch is the possibility to have a runnable
executed when the thread is idle. This is accomplished by adding an
event queue for idle tasks that will only be considered when the main
event queue is empty and the caller of ProcessNextEvent doesn't
require that we wait until there is an event on the main event queue.
MozReview-Commit-ID: IDWQfzZqWpZ
2016-08-24 16:18:06 +02:00
Carsten "Tomcat" Book
4ba5ac3176
Backed out changeset 333a899fb5e6 (bug 1198381)
2016-10-25 12:32:56 +02:00
Andreas Farre
30006face7
Bug 1198381 - Extend nsIThread with idleDispatch, r=froydnj,smaug
...
The intent of idleDispatch is the possibility to have a runnable
executed when the thread is idle. This is accomplished by adding an
event queue for idle tasks that will only be considered when the main
event queue is empty and the caller of ProcessNextEvent doesn't
require that we wait until there is an event on the main event queue.
MozReview-Commit-ID: IDWQfzZqWpZ
2016-08-24 16:18:06 +02:00
Carsten "Tomcat" Book
2dfe81885a
merge mozilla-inbound to mozilla-central a=merge
2016-09-22 11:55:12 +02:00
Eric Faust
15333897fc
Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj)
2016-09-15 21:35:14 -07:00
Cervantes Yu
62174f42e1
Bug 1303940 - MessageLoop::PostDelayedTask() should schedule the runnable on the target thread instead of the current thread. r=froydnj
...
MozReview-Commit-ID: 8yCY9WSwbAJ
2016-09-20 14:00:18 +08:00
Jan de Mooij
b402a91ead
Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
2016-09-14 15:47:32 +02:00
Ben Kelly
a2dbbd7b44
Bug 1300118 P4 Make nsThread expect NS_DISPATCH_AT_END similar to nsThreadPool. r=bholley
2016-09-13 20:12:15 -07:00
Wes Kocher
38957ba9d1
Backed out 6 changesets (bug 1300118) for frequent Windows VM Xpcshell failures a=backout CLOSED TREE
...
Backed out changeset 24f714ad248c (bug 1300118)
Backed out changeset 6fe61ed092e8 (bug 1300118)
Backed out changeset dd18e29b64bf (bug 1300118)
Backed out changeset 50882fb40551 (bug 1300118)
Backed out changeset 60e82c1780e5 (bug 1300118)
Backed out changeset e40df52925d5 (bug 1300118)
2016-09-12 16:34:41 -07:00
Ben Kelly
252be41fb9
Bug 1300118 P4 Make nsThread expect NS_DISPATCH_AT_END similar to nsThreadPool. r=bholley
2016-09-12 12:32:21 -07:00
Ben Kelly
449d185850
Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me
2016-09-12 12:29:17 -07:00
Ben Kelly
e9bff1df31
Bug 1300118 P4 Make nsThread expect NS_DISPATCH_AT_END similar to nsThreadPool. r=bholley
2016-09-12 11:21:01 -07:00
Wes Kocher
9ca1b6d1c1
Backed out changeset 39da44265946 (bug 1263595) for build bustage a=backout CLOSED TREE
2016-09-16 14:19:22 -07:00
Eric Faust
67f078a908
Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj)
2016-09-15 21:35:14 -07:00
Phil Ringnalda
781e99ee0b
Backed out changeset 48694b762a84 (bug 1263595) for -Werror bustage
...
CLOSED TREE
2016-09-15 22:04:50 -07:00
Eric Faust
0afb627b8f
Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj)
2016-09-15 21:35:14 -07:00
Nicholas Nethercote
887efe04d5
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Nicholas Nethercote
d62d70da42
Bug 1299389 - Replace some raw pointers in nsThreadManager. r=froydnj.
...
nsThreadManager::get() can return a reference. This lets us remove some
redundant assertions.
nsThreadArray elements can be NotNull<>s.
2016-06-10 16:04:49 +10:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Nicholas Nethercote
1f65390cc9
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Alexandre Lissy
b2834a3543
Bug 1284674 - Remove NUWA r=cyu
...
MozReview-Commit-ID: GyMRNzOBKw6
2016-08-02 14:54:00 +02:00
Julian Seward
95a0b97943
Bug 1283852 - TSan: data race on nsThreadStartupEvent::mInitialized. r=nfroyd.
2016-07-11 14:14:44 +02:00
Boris Zbarsky
55add5cb74
Bug 767938 part 4. Put an AutoNoJSAPI on the stack while running events off the event loop. r=bholley,khuey
2016-06-24 14:19:50 -04:00
Kirk Steuber
2739fab23f
Bug 1263774 - Include memory reports in content process crash reports. r=mccr8, r=aklotz
...
MozReview-Commit-ID: 7y3GFBZxjsS
2016-06-21 11:45:25 -07:00
Xidorn Quan
4843f879c0
Bug 1276549 - Remove rvalue reference mark for already_AddRefed params of nsIEventTarget::Dispatch and related methods. r=froydnj
...
MozReview-Commit-ID: J5RAfGW3X7T
2016-06-01 10:04:54 +10:00
Nicholas Nethercote
e8a80242c9
Bug 1272203 (part 2) - Use NotNull in nsThread. r=froydnj.
2016-05-27 09:49:23 +10:00
Kyle Huey
975dd6fe6f
Bug 1274114: Factor out main thread specific parts of event processing. r=froydnj
2016-05-22 08:30:03 -04:00
Kyle Huey
fd4a780de1
Bug 1269056: Part 1 - Implement a rough PostDelayedTask equivalent on nsThread. r=froydnj
2016-05-12 15:15:43 -07:00
Nicholas Nethercote
e08635bfec
Bug 1266651 (part 2) - Give nsThreadShutdownContext a proper constructor. r=froydnj.
2016-04-20 11:49:48 +10:00
Nicholas Nethercote
a91b686491
Bug 1266651 (part 1) - Rename nsThreadShutdownContext members. r=froydnj.
2016-04-20 11:46:35 +10:00
Nicholas Nethercote
aa688767be
Bug 1269648 - Add missing crash-reporter null checks. r=froydnj.
...
In two places we fail to check if we successful obtained the crash reporter
before we use it.
2016-05-03 17:08:04 +10:00
Randell Jesup
6817a70923
Bug 1267691: Assert on failed attempts to shutdown a thread from itself r=froyd
...
MozReview-Commit-ID: ByEEd83SVsf
2016-04-27 01:49:48 -04:00
Kyle Huey
a9cf047227
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Kyle Huey
a256ae1a91
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Wes Kocher
dd9b334d33
Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
...
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)
MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey
41c353f8e9
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Bill McCloskey
d206969ad9
Bug 1222101 - Reorder some thread code (r=jld) a=kwierso
...
MozReview-Commit-ID: Alg40mu9aU3
2016-03-30 12:20:20 -07:00
Eric Rahm
3b56efd89c
Bug 1251482 - Remove remaining references to MOZILLA_XPCOMRT_API from xpcom. r=froydnj
2016-02-26 18:10:56 -08:00
Wes Kocher
a7ed9527c6
Backed out 8 changesets (bug 1251482, bug 1251494, bug 1251473, bug 1239870) for gtest failures
...
Backed out changeset f064a5efbb8c (bug 1251494)
Backed out changeset 9e33adec1aa6 (bug 1251482)
Backed out changeset ab0347657e25 (bug 1251473)
Backed out changeset 1d385d4f195d (bug 1239870)
Backed out changeset ceb3e1ee7dda (bug 1239870)
Backed out changeset 8574075bf42f (bug 1239870)
Backed out changeset ba077a3afbc7 (bug 1239870)
Backed out changeset eb99ab06414d (bug 1239870)
MozReview-Commit-ID: 7r9SEk4VGNU
2016-02-26 17:14:57 -08:00