Andreas Farre
09ee357119
Bug 1322184 - Measure time spent in content JS that causes delay in paint. r=billm, data-r=bsmedberg
...
MozReview-Commit-ID: Iz31CKSnDdc
2017-05-02 08:10:00 -04:00
Michael Layzell
9e9bb6861f
Bug 1339537 - Part 6: Pass std::function values tree by const reference instead of by value, r=ehsan
...
MozReview-Commit-ID: PVAqU2DPs2
2017-04-27 12:44:57 -04:00
Bill McCloskey
7a9a74cda2
Bug 1334097 - Avoid busy waiting caused by MaybeUndeferIncall (r=aklotz)
...
In order to avoid a busy wait where we defer and then immediately un-defer a message,
we need to ensure that we only un-defer a message if it's actually ready to be processed.
This patch uses the same condition in MaybeUndeferIncall as we use in
DispatchInterruptMessage.
MozReview-Commit-ID: L2xZfSO0Yrk
2017-04-25 15:45:58 -07:00
Kan-Ru Chen
967c865b3f
Bug 1358697 - Don't capture the Promise raw pointer and make static analysis happy. r=billm
...
MozReview-Commit-ID: 7lMVMcNBDHJ
2017-04-22 10:38:52 +08:00
Iris Hsiao
2593c6ed7f
Backed out changeset 2f0e513820c0 (bug 1358697) for build bustage
2017-04-25 10:04:11 +08:00
Kan-Ru Chen
dda25d7ddb
Bug 1358697 - Don't capture the Promise raw pointer and make static analysis happy. r=billm
...
MozReview-Commit-ID: 7lMVMcNBDHJ
2017-04-22 10:38:52 +08:00
Wes Kocher
e66b36fd81
Merge inbound to m-c a=merge
2017-04-19 17:10:04 -07:00
Bill McCloskey
b85ef18bc3
Bug 1355178 - Don't call MessageChannel::ProcessPendingRequests if we don't expect it to do anything (r=kanru)
...
MozReview-Commit-ID: BJBBkhaNKki
2017-04-19 11:51:14 -07:00
Bill McCloskey
95b3b397d1
Bug 1355178 - Remove unnecessary refcounting from MessageChannel::mPending (r=froydnj)
...
MozReview-Commit-ID: DWEF1ObNmMa
2017-04-19 11:51:14 -07:00
Kan-Ru Chen
bcafbd9c83
Bug 1313200 - Allow IPC messages to async return MozPromises. r=billm,jwwang
...
This patch implements async returns for IPDL using MozPromises. There
are following changes:
* Initialize AbstractThreads for MessageLoops
* Record promises and their reject functions
* When async message returns, call their resolve functions
* When send error or channel close, call their reject functions
* Implement "unresolved-ipc-promises" count for about:memory
* Test cases
See bug attachment for generated code from test cases
MozReview-Commit-ID: 7xmg8gwDGaW
2017-03-16 17:36:15 +08:00
Bill McCloskey
b56c4a33c8
Bug 1356365 - Make MessageChannel::WillDestroyCurrentMessageLoop assertion DEBUG-only (r=mccr8)
...
MozReview-Commit-ID: CDFEu08a9mv
2017-04-18 15:12:39 -07:00
Bill McCloskey
c2f8fa5c8f
Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)
...
MozReview-Commit-ID: I7HyjVanlxJ
2017-04-11 13:15:09 -07:00
Bill McCloskey
7aaaeb22ed
Bug 1349699 - Assert when destroying a MessageLoop that a live MessageChannel is attached to (r=dvander)
...
MozReview-Commit-ID: GGr5UqJl3ui
2017-04-11 13:15:07 -07:00
Bill McCloskey
e46784ae50
Revert "Bug 1349699 - Assert when destroying a MessageLoop that a live MessageChannel is attached to (r=dvander)"
...
This reverts commit 9e65608a6214fc500dd4af4822700fd1ad6e000c.
2017-04-07 16:45:02 -07:00
Bill McCloskey
87eb6bd678
Revert "Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)"
...
This reverts commit b72a0148dd4a3e633559760c6f0394c851799073.
2017-04-07 16:44:59 -07:00
Bill McCloskey
66e5fcbc9c
Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)
...
MozReview-Commit-ID: I7HyjVanlxJ
2017-04-07 14:26:28 -07:00
Bill McCloskey
b3289d6547
Bug 1349699 - Assert when destroying a MessageLoop that a live MessageChannel is attached to (r=dvander)
...
MozReview-Commit-ID: GGr5UqJl3ui
2017-04-07 14:26:28 -07:00
Bill McCloskey
bee3e499da
Revert "Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)"
...
This reverts commit dbf3655b7bbb724f3dbcd015f97fee730ddfe970.
2017-04-04 11:49:34 -07:00
Bill McCloskey
fc9a77cafd
Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)
...
MozReview-Commit-ID: I7HyjVanlxJ
2017-04-04 11:24:09 -07:00
Phil Ringnalda
9022a51a97
Backed out 2 changesets (bug 1349699) for Win8 opt xpcshell crashes at mozilla::ipc::MessageChannel::WillDestroyCurrentMessageLoop
...
Backed out changeset 5cc766c0864e (bug 1349699)
Backed out changeset 13f1d3918fe5 (bug 1349699)
2017-04-03 22:54:59 -07:00
Bill McCloskey
2e3a2739d2
Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)
...
MozReview-Commit-ID: I7HyjVanlxJ
2017-04-03 21:54:49 -07:00
Bill McCloskey
b039e18661
Bug 1349699 - Assert when destroying a MessageLoop that a live MessageChannel is attached to (r=dvander)
...
MozReview-Commit-ID: GGr5UqJl3ui
2017-04-03 21:54:19 -07:00
Phil Ringnalda
493e85c80f
Backed out 3 changesets (bug 1349699) for Android mozilla::ipc::MessageChannel::WillDestroyCurrentMessageLoop crashes
...
Backed out changeset 8a50c2d76afc (bug 1349699)
Backed out changeset 3b9eadd61e26 (bug 1349699)
Backed out changeset 16e000b3fe0c (bug 1349699)
2017-04-03 21:07:49 -07:00
Bill McCloskey
89ccb13337
Bug 1349699 - Fix ASAN builds
...
MozReview-Commit-ID: 9tsL7nzjbpS
2017-04-03 20:08:02 -07:00
Bill McCloskey
b5570aadd0
Bug 1349699 - Assert that the Chromium channel is closed when MessageLoop is destroyed (r=dvander)
...
MozReview-Commit-ID: I7HyjVanlxJ
2017-04-03 19:41:13 -07:00
Bill McCloskey
016d6a2260
Bug 1349699 - Assert when destroying a MessageLoop that a live MessageChannel is attached to (r=dvander)
...
MozReview-Commit-ID: GGr5UqJl3ui
2017-04-03 19:41:13 -07:00
Jonathan Watt
45ea027dd6
Bug 1350641 - Fix MessageChannel::ShouldContinueFromTimeout to check MOZ_DEBUG_CHILD_PAUSE. r=jimm
...
MozReview-Commit-ID: IKqzrzoaOa9
2017-03-09 09:37:10 +00:00
Carsten "Tomcat" Book
c523d35b9d
merge mozilla-inbound to mozilla-central a=merge
2017-03-14 14:23:03 +01:00
Michael Layzell
4f1d511383
Bug 1346866 - Make the IPC serialization/deserialization time probes main-thread-only, r=billm
...
MozReview-Commit-ID: 5Sc820Jh494
2017-03-13 19:25:48 -04:00
Andrew McCreight
c4334372ad
Bug 1345978, part 2 - Check build ids early in content startup. r=billm
...
If Firefox is updated while it is running, the content process can end
up being a different version than the parent process. This can cause
odd crashes, that will happen repeatedly until the user restarts
Firefox. To handle this better, this patch adds a special build ID
message that is sent early in content process startup. The parent
process intentionally crashes if the build ID for the child process
does not match that of the parent process.
MozReview-Commit-ID: 7D3ggkaLxNS
2017-03-10 17:01:38 -08:00
Michael Layzell
ea8d99bcb9
Bug 1342635 - Part 2: Add a telemetry probe for IPDL IPC serialzation time, r=billm
...
MozReview-Commit-ID: Gyx4QO8f5yx
2017-03-10 09:15:26 -05:00
Michael Layzell
2a520f65ea
Bug 1337073 - Improve the precision of the IPC_SYNC_LATENCY_MS probe and rename it to IPC_SYNC_MAIN_LATENCY_MS, r=billm
...
MozReview-Commit-ID: 7JB7h06wCzu
2017-03-10 09:15:26 -05:00
Michael Layzell
0ac815950a
Bug 1343729 - Only collect IPC_SYNC_LATENCY_MS on the main thread, r=billm
...
MozReview-Commit-ID: GtsujcVJNtW
2017-03-10 09:15:26 -05:00
Chris Pearce
220aa82570
Bug 1333489 - Record time spent waiting on sync IPC. r=billm,francois
...
We're curious how long we spend waiting on sync IPCs to complete.
So this patch adds telemetry which reports that, on a per message
basis, so we can identify problem messages.
MozReview-Commit-ID: CB4UaitPBeq
2017-01-31 21:28:41 +13: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
e584c01765
Bug 1331804 - Add more runnable names (r=ehsan)
...
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 10:04:55 -08:00
Thinker K.F. Li
ff52c9a0cb
Bug 1319669 - Add TaskTracer labels for IPC messages. r=cyu,billm
2017-01-09 18:46:00 +01:00
Tomislav Jurin
9ff3007b90
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Nathan Froyd
b995466f21
Bug 1320752 - remove mozilla/Function.h; r=gerald
...
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Bill McCloskey
608aa783de
Bug 1317844 - Allow an event target to be specified for each IPC actor (r=dvander)
...
MozReview-Commit-ID: 1xuWFTS8skZ
2016-11-21 17:03:39 -08:00
Bill McCloskey
643ccb9185
Revert "Bug 1317844 - Allow an event target to be specified for each IPC actor (r=dvander)"
...
This reverts commit 30396b9e84304ad7ee7d5a253ec886325a0f0cbe.
2016-11-21 16:49:44 -08:00
Bill McCloskey
efa3b9b596
Bug 1317844 - Allow an event target to be specified for each IPC actor (r=dvander)
...
MozReview-Commit-ID: 1xuWFTS8skZ
2016-11-21 16:43:15 -08:00
Kan-Ru Chen
1b9dd22e2d
Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
...
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.
MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Bill McCloskey
c4eb21cc09
Bug 792652 - Remove pointless OnFoo methods (r=dvander)
...
A bunch of these methods just delegate from OnFoo to Foo. Not
sure why we have OnFoo.
2016-11-08 15:22:48 -08:00
Bill McCloskey
6d64f5c796
Bug 792652 - Remove methods from MessageListener (r=dvander)
...
With this change, MessageChannel stores mListener as an IToplevelProtocol
rather than a MessageListener (which isn't really a useful concept on
its own). The MessageListener methods are split out to IProtocol and
IToplevelProtocol. MessageListener gets deleted. Some of the inline
functions in MessageChannel had to be moved to MessageChannel.cpp since
IToplevelProtocol isn't defined in MessageChannel.h.
2016-11-08 15:22:36 -08:00
Wes Kocher
9ae70893b6
Backed out 18 changesets (bug 792652) for build bustage on linux64 a=backout CLOSED TREE
...
Backed out changeset 90eaf6aec002 (bug 792652)
Backed out changeset ddd915ab4a48 (bug 792652)
Backed out changeset 95eff6c45cae (bug 792652)
Backed out changeset 75855b5a9ab9 (bug 792652)
Backed out changeset b658ebaad5d7 (bug 792652)
Backed out changeset 2ba36b8ac60c (bug 792652)
Backed out changeset 94fcd3bf3f34 (bug 792652)
Backed out changeset cf9c4164eb43 (bug 792652)
Backed out changeset 59e6d0a4f35b (bug 792652)
Backed out changeset bdf86b8b9c43 (bug 792652)
Backed out changeset 8edf4b247250 (bug 792652)
Backed out changeset 63a3c8e4016e (bug 792652)
Backed out changeset e3e496eab991 (bug 792652)
Backed out changeset 5a1e3136323a (bug 792652)
Backed out changeset dbbe3a8c00e7 (bug 792652)
Backed out changeset 1829d5358808 (bug 792652)
Backed out changeset 004cd692ba6d (bug 792652)
Backed out changeset 92e7fee81fa2 (bug 792652)
2016-11-08 12:05:28 -08:00
Bill McCloskey
6c4feb9e44
Bug 792652 - Remove pointless OnFoo methods (r=dvander)
...
A bunch of these methods just delegate from OnFoo to Foo. Not
sure why we have OnFoo.
2016-11-08 11:32:31 -08:00
Bill McCloskey
2ec024e91b
Bug 792652 - Remove methods from MessageListener (r=dvander)
...
With this change, MessageChannel stores mListener as an IToplevelProtocol
rather than a MessageListener (which isn't really a useful concept on
its own). The MessageListener methods are split out to IProtocol and
IToplevelProtocol. MessageListener gets deleted. Some of the inline
functions in MessageChannel had to be moved to MessageChannel.cpp since
IToplevelProtocol isn't defined in MessageChannel.h.
2016-11-08 11:32:26 -08: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