Commit Graph

351 Commits

Author SHA1 Message Date
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Honza Bambas
c581ae6d18 Bug 1290975 - turn mListener to a raw ptr, r=billm 2016-08-10 10:53:00 +02:00
Kyle Huey
cf5845e98a Bug 1274431: Fix some non-unified build issues. r=jld 2016-08-05 12:00:19 -07:00
Ting-Yu Chou
9876771de6 Bug 1287044 - Annotate pending IPC messages when OOM due to too many of them. r=billm
--HG--
extra : rebase_source : 7d4493eb9d88eeb6a2d7912f01020f7831fb8dd3
2016-07-04 13:36:34 +08:00
David Anderson
6b2b817ec9 Add a callback for top-level actors to free themselves. (bug 1285364, r=billm)
--HG--
extra : rebase_source : 6954a2b34b521c886fba536cd7bedd5f30b94763
2016-07-13 11:21:58 -07:00
Jonathan Watt
b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Bill McCloskey
7dbc02ed0f Bug 1262671 - Use BufferList for Pickle (r=froydnj) 2016-05-27 09:57:41 -07:00
Bill McCloskey
1369c6edad Bug 1273307 - Remove copy constructor/assignment operator for Message/Pickle (r=froydnj) 2016-05-27 09:57:35 -07:00
Kyle Huey
941ab1f522 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Kyle Huey
7f54121b91 Bug 1268313: Part 3 - Replace some NewCancelableRunnableMethod with NS_NewNonOwningCancelableRunnableMethod. r=froydnj 2016-05-05 01:44:59 -07:00
Kyle Huey
7311b10562 Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj 2016-05-05 01:44:59 -07:00
Kyle Huey
63a71e96b0 Bug 1268313: Part 1 - Be explicit about which NewRunnableMethod callers want to be able to cancel. r=froydnj 2016-05-05 01:44:59 -07:00
Mason Chang
c30cae967e Bug 1120485. Add logging to check if we're closing MessageChannel::mHandle twice. r=milan 2016-05-04 11:03:49 -07:00
Andrew McCreight
56f812a0d5 Bug 1268938 - Use the name of the original message in Send for reply telemetry. r=billm
aReply usually won't have a name properly set, but aMsg does. To avoid
accessing aMsg after it dies, copy the pointer to the name.
2016-05-02 20:37:40 -07:00
Carsten "Tomcat" Book
f13688180e Backed out changeset af51821b2fc5 (bug 1268313) for causing very frequent bc7 memory leak
--HG--
extra : rebase_source : 0af725bfab61b8f86e0243490aa970535f726503
2016-04-29 14:22:04 +02:00
Carsten "Tomcat" Book
dfff02b90d Backed out changeset fd833da413ad (bug 1268313)
--HG--
extra : rebase_source : f857127091900871034f44d89095895abe9932dc
2016-04-29 14:21:25 +02:00
Carsten "Tomcat" Book
5d43a44ec6 Backed out changeset 3f2f3fcac66b (bug 1268313)
--HG--
extra : rebase_source : 438e7d7077b900ef252bd628f4559424eebd211f
2016-04-29 14:21:23 +02:00
Carsten "Tomcat" Book
ba3fe0975c Backed out changeset 85ce8cb0639a (bug 1268313)
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kyle Huey
a13954d079 Bug 1268313: Part 3 - Replace some NewCancelableRunnableMethod with NS_NewNonOwningCancelableRunnableMethod. r=froydnj 2016-04-28 14:08:24 -07:00
Kyle Huey
72c9966484 Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj 2016-04-28 14:08:24 -07:00
Kyle Huey
e713dbefec Bug 1268313: Part 1 - Be explicit about which NewRunnableMethod callers want to be able to cancel. r=froydnj 2016-04-28 14:08:24 -07:00
Kyle Huey
7579799b01 Bug 1266595: Replace Chromium Task with Runnable. r=froydnj 2016-04-27 17:06:05 -07:00
Andrea Marchesini
a9b65ecfb0 Bug 1261094 - Improve how MessageChannel::mInterruptStack is used in IPC code, r=jld 2016-04-28 07:21:49 +08:00
Bill McCloskey
a179f9fce9 Bug 1264820 - Measure IPC reply size in telemetry (r=mccr8) 2016-04-26 13:50:56 -07:00
Daniel Holbert
2b3d8925f1 Backed out changeset ae89c24b7692 (bug 1264820) for -Werror build bustage
MozReview-Commit-ID: ECNuGMefyqC
2016-04-20 15:41:32 -07:00
Bill McCloskey
b7e2b4e82e Bug 1264820 - Measure IPC reply size in telemetry (r=mccr8) 2016-04-20 14:55:35 -07:00
Andrew McCreight
60582081ac Bug 1264662 - Record IPC message capacity instead of size. r=billm
Capacity includes internal fragmentation, while size does not.

This requires making capacity() public, but that seems benign.
2016-04-14 17:46:52 -07:00
Ting-Yu Chou
964d4d12f1 Bug 1260736 - Let the client to filter out its interested messages to lower the number of times entering the monitor in PeekMessages(). r=dvander 2016-04-13 09:51:34 +08:00
Bill McCloskey
d148e665af Bug 1235633 - IPC OOM mitigation by eliminating buffer copying (r=jld) 2016-04-07 17:15:26 -07:00
Mason Chang
7e8b1d4295 Bug 1120485. Log CloseHandle error reason during MessageChannel shutdown failure. r=milan 2016-04-06 09:03:22 -07:00
Andrew McCreight
4bd42b6939 Bug 1261099 - Avoid two Message copies in MaybeUndeferIncall. r=billm 2016-04-04 10:13:43 -07:00
Bill McCloskey
b3613ec89e Bug 1260908 - Record IPC message sizes (r=dvander) 2016-04-01 11:22:27 -07:00
Wes Kocher
7db1b1b28a Backed out 2 changesets (bug 1260908) for build bustage
Backed out changeset 5582a25d289d (bug 1260908)
Backed out changeset 9612cef48d43 (bug 1260908)

MozReview-Commit-ID: BKeDiGZ8Z8B
2016-04-01 10:44:27 -07:00
Bill McCloskey
5672f5992c Bug 1260908 - Record IPC message sizes (r=dvander) 2016-04-01 09:59:19 -07:00
Ting-Yu Chou
9c7a4ca7f0 Bug 1255968 - Part 1: Let the callback of PeekMessages() to return a boolean to be able to break out the loop. r=dvander
--HG--
extra : rebase_source : 98a2baf9c3926cdb0740979d4cb5c11d7cd6a312
2016-03-28 11:02:18 +08:00
Benoit Girard
c26878b866 Bug 1257314 - Properly lock in IPC PeekMessages. r=dvander a=topcrash
MozReview-Commit-ID: 8iUVhiN9Ksk

--HG--
extra : source : 186064e556caa51a3cb804e43ff7356b36e3e2f2
2016-03-16 17:15:38 -04:00
Benoit Girard
52f4e2acc5 Bug 1242609 - Implement PeekMessage to get some messages earlier. r=billm
MozReview-Commit-ID: KbRiPTDRJmp

--HG--
extra : rebase_source : 090a45edc4af7badaebbe52e2c83f71e84bc6d99
2016-03-14 11:22:32 -04:00
Gregor Wagner
8fc859766a Bug 1254471 - Fix MessageChannel.cpp error unused variable transaction. r=billm 2016-03-08 16:53:43 +01:00
Bill McCloskey
b70d78b809 Bug 1248750 - Eliminate intentional IPC crashes (r=dvander) 2016-03-06 14:38:07 -08:00
Bill McCloskey
f8784ed28b Back out bug 1248750 on a CLOSED TREE 2016-03-04 16:04:41 -08:00
Bill McCloskey
816b25e191 Bug 1248750 - Eliminate intentional IPC crashes (r=dvander) 2016-03-04 14:51:08 -08:00
Bill McCloskey
70bb5a0c46 Bug 1240985 - IPC fuzzer (r=gabor) 2016-03-04 14:51:08 -08:00
Bogdan Postelnicu
f0bc5ab6b9 Bug 1246886 - initialize mMoved in move contructor. r=billm
--HG--
extra : rebase_source : b11a58da8d930c768b4500913c2ac303c7425ee8
2016-02-09 11:21:39 +02:00
Bill McCloskey
c52ba119a6 Bug 1237458 - Use MOZ_RELEASE_ASSERT for IPC assertions (r=jld) 2016-02-05 10:42:38 -08:00
Carsten "Tomcat" Book
dfa1a3c8c7 Backed out changeset 0d358cdf1ce4 (bug 1237458) for bustage 2016-02-05 08:13:50 +01:00
Bill McCloskey
fa01fbff59 Bug 1237458 - Use MOZ_RELEASE_ASSERT for IPC assertions (r=jld) 2016-02-04 22:29:05 -08:00
Bill McCloskey
c091f01a39 Bug 1191145 - Stop blocking scripts when handling IPC messages (r=dvander) 2016-02-01 20:43:29 -08:00
Bill McCloskey
453e4526b6 Bug 1240985 - Stop returning MsgNotAllowed (r=dvander) 2016-01-27 15:09:05 -08:00
Bill McCloskey
49ec6f0e34 Bug 1240985 - Check WasTransactionCanceled after timeout (and avoid timing out) (r=dvander) 2016-01-27 15:09:04 -08:00
Bill McCloskey
665b58c933 Bug 1240985 - Null out mRecvd if message it corresponds to is cancelled (r=dvander) 2016-01-27 15:09:03 -08:00
Bill McCloskey
9cb4b0e9d5 Bug 1240985 - Always enqueue OnMaybeDequeueOne task when receiving a message (r=dvander) 2016-01-27 15:09:01 -08:00
Bill McCloskey
6d330d1e7d Bug 1240985 - Hold off processing some messages during timeout (r=dvander) 2016-01-27 15:09:00 -08:00
Bill McCloskey
ece4f66221 Bug 1240985 - Make intentional crash happen sooner when cancelling a racy sync message (r=dvander) 2016-01-27 15:08:59 -08:00
Bill McCloskey
681c2be709 Bug 1240985 - Fix some timeout/cancel interactions (r=dvander) 2016-01-27 15:08:58 -08:00
Bill McCloskey
9b71f5ba33 Bug 1240985 - Add mLastError to track sync Send errors better (r=dvander) 2016-01-27 15:08:57 -08:00
Bill McCloskey
25b5bed2af Bug 1240985 - Crash when trying to cancel while dispatching urgent message (r=dvander) 2016-01-27 15:08:54 -08:00
Wes Kocher
5648c229cc Backed out 10 changesets (bug 1242097, bug 1240985) for near-permafailing in test_plugin_focus.html
Backed out changeset 30f1acd9387f (bug 1240985)
Backed out changeset 6d7f80a057f0 (bug 1240985)
Backed out changeset c3dfc2c674ff (bug 1240985)
Backed out changeset b7f2ce03b34e (bug 1240985)
Backed out changeset 2c0c0ed35656 (bug 1240985)
Backed out changeset 85c8cb422bad (bug 1240985)
Backed out changeset 06b4cb890ab0 (bug 1240985)
Backed out changeset f10c0445c450 (bug 1240985)
Backed out changeset 62eaf89ab82f (bug 1242097)
Backed out changeset b94c1a472d46 (bug 1240985)

--HG--
extra : commitid : 2iDH7HLUMiO
2016-01-26 09:55:59 -08:00
Wes Kocher
28c6b17a8f Backed out changeset 296fd9d50c25 (bug 1240985)
--HG--
extra : commitid : 1uiqg6HJ5kS
2016-01-26 09:55:24 -08:00
Jan de Mooij
ffba220766 Bug 1240985 followup - Make CancelMessage constructor |explicit|. r=bustage, CLOSED TREE 2016-01-26 08:49:48 +01:00
Bill McCloskey
43897699b1 Bug 1240985 - Stop returning MsgNotAllowed (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
004730c364 Bug 1240985 - Check WasTransactionCanceled after timeout (and avoid timing out) (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
3e1276dc1a Bug 1240985 - Null out mRecvd if message it corresponds to is cancelled (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
1ea1154361 Bug 1240985 - Always enqueue OnMaybeDequeueOne task when receiving a message (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
bed9507f92 Bug 1240985 - Hold off processing some messages during timeout (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
20989f2902 Bug 1240985 - Make intentional crash happen sooner when cancelling a racy sync message (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
230e3aab23 Bug 1240985 - Fix some timeout/cancel interactions (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
6c7d6d7d7e Bug 1240985 - Add mLastError to track sync Send errors better (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
27e6da673a Bug 1240985 - Crash when trying to cancel while dispatching urgent message (r=dvander) 2016-01-25 21:49:42 -08:00
Bill McCloskey
dd544927e1 Bug 1240985 - Back out "Stop returning MsgNotAllowed" patch. 2016-01-24 17:31:11 -08:00
Bill McCloskey
548907bd62 Bug 1240985 - Fix transaction ID when sending cancel message 2016-01-24 17:30:51 -08:00
Nicholas Nethercote
2e3da0d24d Bug 1241370 - Don't strdup() the message name in InterruptFrame. r=billm.
It's not necessary, because all message names are string literals.

--HG--
extra : rebase_source : 5adc437f4747589ee5e2a8582e2666dc569ef569
2016-01-20 19:00:01 -08:00
Bill McCloskey
0cbd486903 Bug 1240985 - Make sure to queue mDequeueOneTasks after cancellation (r=dvander) 2016-01-21 07:38:27 -08:00
Bill McCloskey
dc169e992e Bug 1240985 - Stop returning MsgNotAllowed (r=dvander) 2016-01-21 07:38:26 -08:00
Bill McCloskey
78d4767d25 Bug 1240985 - Return false when trying to Send while dispatching urgent (r=dvander) 2016-01-21 07:38:25 -08:00
Bill McCloskey
e64d1645e5 Bug 1240985 - Check for cancellation during ProcessPendingRequests (r=dvander) 2016-01-21 07:38:24 -08:00
Bill McCloskey
596df96eee Bug 1240985 - Fix cancel during timeout (r=dvander) 2016-01-21 07:38:22 -08:00
Bill McCloskey
538d2f8db9 Bug 1240985 - Add some MessageChannel logging (r=dvander) 2016-01-21 07:38:21 -08:00
Wes Kocher
7b2fec233a Backed out 9 changesets (bug 1240985) for various Windows build failures CLOSED TREE
Backed out changeset 1a5165c7be18 (bug 1240985)
Backed out changeset 26e6fe3875a5 (bug 1240985)
Backed out changeset b87f893bd6aa (bug 1240985)
Backed out changeset 3fcd50d83821 (bug 1240985)
Backed out changeset 488690ba4c8f (bug 1240985)
Backed out changeset a7eecc68ca20 (bug 1240985)
Backed out changeset 12de76467424 (bug 1240985)
Backed out changeset 34f87cc8ac24 (bug 1240985)
Backed out changeset fddcf8b3b088 (bug 1240985)

--HG--
extra : commitid : HHtLm1o5wWx
2016-01-20 17:22:12 -08:00
Andrew McCreight
4e8ae41af1 Bug 1240985 - Fix variadic macro on Windows. r=bustage CLOSED TREE 2016-01-20 17:05:15 -08:00
Bill McCloskey
d7d6c573c8 Bug 1240985 - Make sure to queue mDequeueOneTasks after cancellation (r=dvander) 2016-01-20 16:21:16 -08:00
Bill McCloskey
01a23f6bef Bug 1240985 - Stop returning MsgNotAllowed (r=dvander) 2016-01-20 16:21:16 -08:00
Bill McCloskey
961f4af53c Bug 1240985 - Return false when trying to Send while dispatching urgent (r=dvander) 2016-01-20 16:21:16 -08:00
Bill McCloskey
adab8ac1e6 Bug 1240985 - Check for cancellation during ProcessPendingRequests (r=dvander) 2016-01-20 16:21:16 -08:00
Bill McCloskey
227fa04346 Bug 1240985 - Fix cancel during timeout (r=dvander) 2016-01-20 16:21:16 -08:00
Bill McCloskey
eddd3a1616 Bug 1240985 - Add some MessageChannel logging (r=dvander) 2016-01-20 16:21:16 -08:00
Jan de Mooij
e649af9a9f Bug 1237201 part 4 - Handle Vector OOM in ipc/. r=billm 2016-01-14 15:19:24 +01:00
Nigel Babu
19bdaf442f Backed out changeset 4ad4623f3840 (bug 1237458) for build bustage ON A CLOSED TREE
--HG--
extra : commitid : HVpJXHDvGIX
2016-01-07 11:51:34 +05:30
Bill McCloskey
e61565a99e Bug 1237458 - Use release assertions in IPC (r=jld) 2016-01-06 21:53:58 -08:00
chaithanya
4482e6ef5c Bug 1197306 - remove PR_snprintf calls in ipc/; r=froydnj 2015-12-14 13:32:56 -05:00
Bill McCloskey
35328ff29a Bug 1215167 - Forbid unsafe browser CPOWs (disabled by default for now) (r=mrbkap) 2015-11-05 13:17:04 -08:00
Wes Kocher
cad6f9789a Backed out changeset 89446bf8d6b8 (bug 1215167) for introducing a hazard
--HG--
extra : commitid : 19K8BX0d4Wz
2015-11-04 16:16:59 -08:00
Bill McCloskey
ac2ca63fc1 Bug 1215167 - Forbid unsafe browser CPOWs (disabled by default for now) (r=mrbkap) 2015-11-04 13:40:15 -08:00
Andrew McCreight
2e351e563c Bug 1217640 - MessageChannel::Call() should delete aMsg when the channel is not connected. r=jld
Otherwise, the message will leak.
2015-10-26 12:38:19 -07:00
Trevor Saunders
dda4730c3c bug 1212906 - don't handle windows messages while waiting for a sync a11y ipc message r=billm
Windows messages can trigger sync ipc messages to the child process.  That
means if we handle windows messages while waiting for the response to a sync
a11y ipc message we can end up reentering the code to send ipc messages which
is bad.  Try and avoid this situation by not handling windows messages while
waiting for a sync a11y message.
2015-10-14 14:02:47 -04:00
Bill McCloskey
1b725eb6bc Back out bug 1191143 - Cancel CPOWs from both sides 2015-10-07 11:15:11 -07:00
Bill McCloskey
47202f14e8 Back out bug 1191145 - Stop blocking scripts in CPOW IPCs 2015-10-07 11:15:11 -07:00
Bill McCloskey
0f09a1e1ef Bug 1210821 - Fix possible IPC cancellation bug (r=dvander) 2015-10-05 13:15:15 -07:00
Bill McCloskey
6efa744de9 Bug 1191145 - Stop blocking scripts in CPOW IPCs (r=dvander) 2015-09-29 16:11:49 -07:00
Bill McCloskey
e633fa0e76 Bug 1191143 - Cancel CPOWs from both sides (r=dvander) 2015-09-29 16:11:49 -07:00
Michael Layzell
0097c41e01 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Aaron Klotz
b5620ac836 Bug 1189709 - Reduce scope of MessageChannel window neutering. r=jimm
CLOSED TREE

--HG--
extra : amend_source : 76d39b5b5e7af9384c583b71659adddb72ab169c
2015-08-26 15:57:29 -06:00
Aaron Klotz
1074da1019 Bug 1185639 - Allow deferred message processing to happen between consecutive IPC message dispatches. r=jimm 2015-07-21 01:21:51 -06:00
Ryan VanderMeulen
555a3164b2 Backed out changeset b2d0e28fe539 (bug 1185639) test_plugin_focus.html timeouts. 2015-07-27 16:06:03 -04:00
Aaron Klotz
5e0cb1c026 Bug 1185639: Allow deferred message processing to happen between consecutive IPC message dispatches; r=jimm
--HG--
extra : rebase_source : e6567ce8fa5c663970862a9b93c82464b2429250
2015-07-21 01:21:51 -06:00
Bill McCloskey
d46d9878a8 Bug 1177013 - Bug fixes for CPOW cancelation (r=dvander) 2015-07-15 14:37:11 -07:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Aaron Klotz
7649b5e4d2 Bug 1170231: Part 1 - Remove condition that may cause deadlock in IPC when mediating interrupt races; r=dvander
--HG--
extra : rebase_source : 21c89d04308650e5529be3d085492cf9b97a1f7e
extra : histedit_source : 3325249d22394c6d919c46d67c66e0b0bb7f080a
2015-06-26 11:01:26 -07:00
Bill McCloskey
5a4480fbd2 Bug 1177013 - Avoid memory leaks when returning errors from IPC Send (r=dvander) 2015-07-06 19:58:46 -07:00
Bill McCloskey
be0af84bba Bug 1177013 - Telemetry for CPOW cancelation (r=dvander) 2015-07-06 19:58:46 -07:00
Bill McCloskey
a6bf5dd949 Bug 1177013 - Fix big IPC comment (r=dvander) 2015-07-06 19:58:45 -07:00
Bill McCloskey
73129c2b81 Bug 1177013 - Crash in IPC situations where we don't know what to do (r=dvander) 2015-07-06 19:58:45 -07:00
Bill McCloskey
43786e09b5 Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander) 2015-07-06 19:58:44 -07:00
Bill McCloskey
64b777ec3f Bug 1177013 - CancelCurrentTransaction IPC support (r=dvander) 2015-07-06 19:58:44 -07:00
Bill McCloskey
fe7eba5f60 Bug 1177013 - Don't allow prio messages while dispatching sync messages (r=dvander) 2015-07-06 19:58:43 -07:00
Bill McCloskey
541869bf48 Bug 1177013 - Change IPC locking to get transaction ID correct (r=dvander) 2015-07-06 19:58:42 -07:00
Phil Ringnalda
166cfe8460 Back out 12 changesets (bug 1177013) on suspicion of causing b2g emulator debug test bustage
CLOSED TREE

Backed out changeset 912aae0815f8 (bug 1177013)
Backed out changeset 3b6448172e50 (bug 1177013)
Backed out changeset 2af18bef5703 (bug 1177013)
Backed out changeset e6bf35115c11 (bug 1177013)
Backed out changeset 4d7f5205b60b (bug 1177013)
Backed out changeset f7de893911bc (bug 1177013)
Backed out changeset de79eba232f0 (bug 1177013)
Backed out changeset 978a77b60f2a (bug 1177013)
Backed out changeset f5b52fa19511 (bug 1177013)
Backed out changeset e14a7b70b6fa (bug 1177013)
Backed out changeset d0f5a3474659 (bug 1177013)
Backed out changeset bff9f07dad52 (bug 1177013)
2015-07-02 22:08:54 -07:00
Bill McCloskey
37a31058b1 Bug 1177013 - Avoid memory leaks when returning errors from IPC Send (r=dvander) 2015-07-02 17:18:12 -07:00
Bill McCloskey
43fd180e15 Bug 1177013 - Telemetry for CPOW cancelation (r=dvander) 2015-07-02 17:18:11 -07:00
Bill McCloskey
b6bec6d887 Bug 1177013 - Fix big IPC comment (r=dvander) 2015-07-02 17:18:11 -07:00
Bill McCloskey
7869156360 Bug 1177013 - Crash in IPC situations where we don't know what to do (r=dvander) 2015-07-02 17:18:11 -07:00
Bill McCloskey
72a845c0e6 Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander) 2015-07-02 17:18:10 -07:00
Bill McCloskey
44dfabe655 Bug 1177013 - CancelCurrentTransaction IPC support (r=dvander) 2015-07-02 17:18:10 -07:00
Bill McCloskey
db93151932 Bug 1177013 - Don't allow prio messages while dispatching sync messages (r=dvander) 2015-07-02 17:18:09 -07:00
Bill McCloskey
bfbc982009 Bug 1177013 - Change IPC locking to get transaction ID correct (r=dvander) 2015-07-02 17:18:09 -07:00
Bill McCloskey
b053e2eeeb Bug 1176096 - Ensure we don't do self-moves in move assignment (r=bent) 2015-07-01 13:30:49 -07:00
Blake Kaplan
25d39ad698 Bug 1155494 - Add a 'compressall' message flag. f=handyman r=billm (parts of this patch were written by handyman with r=billm) 2015-05-05 16:20:42 -07:00
Aaron Klotz
28a06e03b9 Bug 1159037: Ensure correct parent and child message are passed to MessageListener::MediateInterruptRace; r=dvander
--HG--
extra : rebase_source : d0c50c69b8124ea1993b823ceadccf28ac91fd6b
2015-04-27 17:24:07 -06:00
Bill McCloskey
86e65c20f2 Bug 1154990 - Better error messages when IPC send fails (r=bent) 2015-04-20 23:32:59 -07:00
Bill McCloskey
79abd6e01a Bug 1128457 - Change handling of urgent messages during timeout (r=dvander) 2015-04-13 18:11:49 -07:00
Bill McCloskey
e55b3abff3 Bug 1128457 - Make sure received messages are dispatched during timeouts (r=dvander) 2015-04-01 17:37:14 -07:00
Bill McCloskey
ba40fd679d Bug 1142109 - Process incoming urgent messages before sending (r=dvander) 2015-03-17 13:43:34 -07:00
Aaron Klotz
d186a94983 Bug 1128768: Part 1 - Modify IPC to allow retrieval of topmost routing id on the stack; r=dvander
--HG--
extra : rebase_source : d6d92ae478e3f43468b035cfa759e89d7ac0eaab
2015-02-18 23:05:54 -07:00
David Parks
6d03295e45 Bug 1130051 - Restore old semantics of IPDL 'compress' attribute. r=billm
In bug 1076820, the semantics of the IPDL 'compress' attribute were
changed to remove *all* duplicate messages of a type from the IPDL
message queue.  This restores the original behavior, where duplicates
were only removed if they were adjacent in the message queue.
2015-02-12 12:32:03 -08:00
Bill McCloskey
c04f106018 Bug 1124933 - Include crash reason when intentionally crashing content process (r=bent) 2015-02-03 09:09:27 -08:00
Bill McCloskey
f6534c08fb Bug 1118618 - [e10s] Slow script/plugin hang UI (r=mrbkap,mconley,bent) 2015-01-16 18:34:47 -08:00
Carsten "Tomcat" Book
1160541f6f Backed out changeset f7d82a8a8e94 (bug 1118618) for Bustage on a CLOSED TREE 2015-01-13 08:44:29 +01:00
Bill McCloskey
eec94c71f5 Bug 1118618 - IPDL notifications when sending sync messages (r=bent) 2015-01-12 23:06:48 -08:00
Ehsan Akhgari
4354953b4f Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Brad Lassey
b536664cf4 bug 1097998 - Warn when using CPOWs when content process isn't in a safe state r=billm, bholley 2015-01-02 13:50:21 -05:00
Aaron Klotz
37a6150ab4 Bug 1116827: Add check for null mMonitor in MessageChannel::CanSend(); r=dvander
--HG--
extra : rebase_source : c4e4b864fa511d60c2b0dc22e498d2f666c8148f
2014-12-31 13:15:38 -07:00
Aaron Klotz
0876759d20 Bug 998863: Asynchronous Plugin Initialization, Part 3: ipc/glue changes; r=dvander 2014-12-29 16:12:47 -07:00
Phil Ringnalda
0c888c27eb Backed out 15 changesets (bug 1070755, bug 998863) for e10s bustage
CLOSED TREE

Backed out changeset 076d1d47d601 (bug 1070755)
Backed out changeset 43819af59ca5 (bug 998863)
Backed out changeset 5f587697ae63 (bug 998863)
Backed out changeset e2cf239e8572 (bug 998863)
Backed out changeset fe21b6b789ce (bug 998863)
Backed out changeset 404f59f86edc (bug 998863)
Backed out changeset 5dd57abaf2b0 (bug 998863)
Backed out changeset 6c1f006a03bc (bug 998863)
Backed out changeset 9e69875e3667 (bug 998863)
Backed out changeset c6b68f8f72ba (bug 998863)
Backed out changeset 713799a7afe4 (bug 998863)
Backed out changeset 4244d662787c (bug 998863)
Backed out changeset ba058cc7a1b2 (bug 998863)
Backed out changeset dabc69b0b09a (bug 998863)
Backed out changeset 18dad6d2e7cc (bug 998863)
2014-12-24 18:28:45 -08:00
Aaron Klotz
fc2f0c6a2e Bug 998863: Asynchronous Plugin Initialization, Part 3: ipc/glue changes; r=dvander 2014-12-24 17:56:06 -07:00
Chris Peterson
27902ec6b5 Bug 1114724 - Define PRIuSIZE format specifiers for size_t. r=Waldo 2014-12-21 23:30:06 -08:00
Bill McCloskey
2d185c3202 Bug 1109883 - Allow urgent prio messages to be sent to child (r=dvander) 2014-12-18 17:35:48 -08:00
Bill McCloskey
73c276ef13 Bug 1110938 - Add timeout for CPOWs (default to 0) (r=dvander) 2014-12-18 17:35:44 -08:00
Bill McCloskey
ac2be68f94 Bug 1110938 - Use message sequence number for transaction ID in MessageChannel (r=dvander) 2014-12-18 17:34:25 -08:00
Bobby Holley
455f15535d Bug 1103324 - Instantiate an AutoNoJSAPI when dispatching IPC messages. r=billm 2014-12-06 09:51:14 -08:00
David Parks
4741aa886c Bug 1076820 - Redraw on resize performance for content is pretty bad with e10s r=billm
Modern OSs adjust process scheduling based on CPU-boundedness and Interface-boundedness.  A process performing a lot of UI tasks requires lower-latency than a CPU-bound process.  For this reason, at least on Windows (but probably also Linux and Mac), in e10s, resize events are sent at a much higher rate than non-e10s, where the main process has to do the work to respond to them.  This was supposed to be handled by the 'compress' option in IPDL but its duplicate-event test was very imprecise - it only tested the *oldest* message in the queue.  This patch searches the messagequeue/deque to remove *any* duplicate.  deque::erase is linear but this is a very uncommon case - currently only two compressed IPDL messages exist in the entire code base.  Also, these queues are small.
2014-11-07 14:21:08 -08:00
Nathan Froyd
8340380af1 Bug 1092010 - part 3 - don't use IPC::Message::operator=(IPC::Message const&) in MessageChannel.cpp; r=dvander 2014-11-01 07:00:54 -04:00
Nathan Froyd
b4ca2351fe Bug 1092010 - part 2 - use move semantics in MessageChannel.cpp; r=dvander 2014-10-31 11:21:01 -04:00
Ryan VanderMeulen
199b533463 Backed out changesets a7d4914ea11a and f3d36cf13ac1 (bug 1092010) for non-unified bustage. 2014-11-01 00:10:08 -04:00
Nathan Froyd
da125a46bd Bug 1092010 - part 2 - use move semantics in MessageChannel.cpp; r=dvander 2014-10-31 11:21:01 -04:00
Bill McCloskey
2035b00c59 Bug 1062713 - Handle normal priority messages while sending sync messages more efficiently (r=dvander) 2014-10-30 13:06:24 -07:00
Andrew McCreight
78d06724f8 Bug 1089833 - Delete reply in MessageChannel::DispatchSyncMessage and DispatchInterruptMessage if channel isn't connected. r=billm 2014-10-28 13:53:15 -07:00
Bill McCloskey
2ab547d3ab Bug 1049879 - Remove urgent and rpc message types and replace with message priorities (r=dvander,bent,ehsan) 2014-10-07 21:32:45 -07:00
Carsten "Tomcat" Book
4985d0ee76 Backed out changeset e56bf4ea89fb (bug 1049879) for bustage in emulator debug builds on a CLOSED TREE 2014-10-08 08:03:57 +02:00
Bill McCloskey
281cb8db91 Bug 1049879 - Remove urgent and rpc message types and replace with message priorities (r=dvander,bent,ehsan) 2014-10-07 21:32:45 -07:00
Bill McCloskey
bc57adfb17 Bug 1071409 - Eliminate potential CPOW hang (r=dvander) 2014-10-01 09:58:54 -07:00
Ehsan Akhgari
8e138d4419 Bug 1060997 - Fix more bad implicit constructors in IPC; r=smaug 2014-08-31 21:12:55 -04:00
Botond Ballo
e7dbf26fb2 Bug 965022 - Use MOZ_FORMAT_PRINTF for [f]printf_stderr, and fix incorrect usages. r=jrmuizel
--HG--
extra : rebase_source : 667fc18943d84f1ae28579fc23f846f9350e6fe2
2014-08-26 17:14:51 -04:00
Ryan VanderMeulen
a19bf3acbf Backed out 5 changesets (bug 965022) for mochitest-2 failures on a CLOSED TREE.
Backed out changeset 7f68752ffe1e (bug 965022)
Backed out changeset 24251d4da019 (bug 965022)
Backed out changeset a34ae046c947 (bug 965022)
Backed out changeset f747fd154739 (bug 965022)
Backed out changeset f076faf3c282 (bug 965022)
2014-08-26 16:02:37 -04:00
Botond Ballo
e9b504cd9e Bug 965022 - Use MOZ_FORMAT_PRINTF for [f]printf_stderr, and fix incorrect usages. r=jrmuizel 2014-08-25 18:28:25 -04:00
Kyle Huey
d8140a30b5 Bug 1057402: Fix for non-unified builds. r=me 2014-08-22 10:02:47 -07:00
Kyle Huey
2bd759b486 Bug 1057402: Always log the message type when we hit an IPC protocol error. r=bent 2014-08-22 09:23:01 -07:00
Ben Kelly
9b26ef9797 Bug 1049801 P2 Cancel the DispatchOnChannelConnected runnable when destructing the MessageChannel. r=bent 2014-08-21 14:13:23 -04:00
Jim Mathies
5a0921a9b9 Bug 874437 - Only enable ipc sync wait deferred Windows message handling for plugin protocols, everything else should use standard blocking waits. r=bsmedberg 2014-08-15 12:12:37 -05:00
Birunthan Mohanathas
3e8abfd2e8 Bug 1049997 - Separate statements declaring multiple pointers into separate statements. r=froydnj 2014-08-08 07:04:45 -07:00
Bill McCloskey
62917d6717 Bug 1042587 - Block scripts when using CPOWs (r=bent) 2014-08-05 21:44:42 -07:00
Bill McCloskey
024b67429e Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-08-05 21:43:36 -07:00
Bill McCloskey
8bcf32b6ed Back out bug 950745 for crashes 2014-07-30 16:19:46 -07:00
Benoit Jacob
c50ccf8dba Bug 1044658 - 5/6 - remove asWeakPtr - r=froydnj 2014-07-30 15:52:05 -04:00
Bill McCloskey
c87bbeeeda Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke) 2014-07-17 21:09:45 -07:00
Ben Kelly
9538652bf1 Bug 1013571 Reland support for PBackground on workers. r=bent 2014-07-09 17:39:18 -04:00
Wes Kocher
25c80c8653 Backed out changeset 725b7db309c3 (bug 1013571) for causing the failures in 1032783 2014-07-08 14:43:46 -07:00
Ben Kelly
273b405632 Bug 1013571 Reland support for PBackground on workers. r=bent 2014-07-08 14:57:16 -04:00
Bas Schouten
0fb4d010fd Bug 1009590: Deal with non-ui-thread IPDL usage on Windows. r=bent 2014-05-18 05:16:51 +02:00
Ting-Yu Chou
bec3061850 Bug 999351 - Fix an IPC leak by clearing MessageChannel resource before destruction. r=bent
Once we have a channel error (like, child process dies) we don't immediately do
anything with additional messages that were pending from that child. They stay
queued and eventually get freed when the channel is destroyed. This patch clears
the resource earlier whenever there is an error, or the channel is closed.
2014-04-24 15:26:50 +08:00
Benjamin Smedberg
070bb00497 Bug 778866 - Abort from the I/O thread on abnormal shutdown of a plugin-process, in case the main thread is wedged and the Firefox process has already been killed, r=cjones 2014-03-04 12:17:01 -05:00
Ehsan Akhgari
3b5e7a8157 Bug 976258 - Undo the damage of including windows.h in IPCMessageUtils.h; r=bent 2014-03-03 21:35:51 -05:00
L. David Baron
03ba2e465b Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
Ben Turner
a80f9315df Bug 956218 - '(PBackground) Add a mechanism for communicating with
a non-main I/O thread via thread and process links'. r=mrbkap+khuey+bsmedberg.
2013-11-26 23:59:41 -08:00
Ben Turner
3bcfec25c8 Backout bug 956218 for build error 2014-02-06 15:19:08 +01:00
Ben Turner
d251cb806b Bug 956218 - '(PBackground) Add a mechanism for communicating with a non-main I/O thread via thread and process links'. r=mrbkap. 2013-11-26 23:59:41 -08:00
Ben Turner
10cf13f470 Backout bug 956218 for link error. 2014-02-06 11:50:43 +01:00
Ben Turner
4944532d70 Bug 956218 - '(PBackground) Add a mechanism for communicating with a non-main I/O thread via thread and process links'. r=mrbkap. 2013-11-26 23:59:41 -08:00
Bill McCloskey
40ff701ba0 Bug 910962 - Make DeallocShmem not assert when child has crashed (r=bsmedberg) 2014-01-31 10:43:44 -08:00
Ben Turner
6b45b1636a Bug 957828 - Move stack machinery to cpp file, r=bsmedberg. 2014-01-10 12:58:31 -08:00
Ben Turner
ac3d30c941 Bug 957828 - Don't make stack copies of all IPC messages, r=bsmedberg. 2014-01-10 12:58:20 -08:00
Alexandre Lissy
bd6a1c3c96 Bug 942118 - Ensure that we call MessageChannel::ReportConnectionError() with no lock. r=bent
Making a call to mListener with a mMonitor lock is bad. Most of the code
path for ReportConnectionError() are doing this because they are just
after the Connected() method which needs the lock. We ensure to unlock
mMonitor in the scope of the ReportConnectionError() call.
2013-11-22 17:29:25 +01:00
Bill McCloskey
735523245e Bug 947632 - Assert that we don't sendSyncMessage while processing a CPOW request (r=dvander) 2013-12-14 15:50:22 -08:00
David Anderson
bc3a485edc Remove bogus assert in RPC calls (bug 937216, r=cjones). 2013-12-05 15:06:29 -08:00
Ehsan Akhgari
2bca7b6102 Bug 941417 - Build ipc/glue in unified mode; r=bent 2013-11-22 13:53:02 -05:00
Peiyong Lin
e4eccdece6 Bug 933821 - Replace IPC_ASSERT(MSG_ROUTING_NONE != msg->routing_id(), "need a route") with PrintMessageRouteError. r=bent 2013-11-14 15:24:18 -05:00
David Anderson
965debdfce Fix landing fail for bug 901789 (bug 924121, r=bsmedberg). 2013-10-21 16:19:40 -07:00
David Anderson
47ae6f0cc8 Introduce new RPC messaging semantics (bug 910493 part 1, r=cjones). 2013-10-01 09:15:03 -07:00
Mark Hammond
a228cb0497 Bug 920397 part 2 - MessageChannel::~MessageChannel() now asserts that closing the handle succeeded. r=bsmedberg 2013-10-01 10:56:16 +10:00
David Anderson
437f6053a9 Rename IPDL's RPC to Interrupt (bug 910020, r=bent).
--HG--
rename : ipc/ipdl/test/cxx/PTestRPCErrorCleanup.ipdl => ipc/ipdl/test/cxx/PTestInterruptErrorCleanup.ipdl
rename : ipc/ipdl/test/cxx/PTestRPCRaces.ipdl => ipc/ipdl/test/cxx/PTestInterruptRaces.ipdl
rename : ipc/ipdl/test/cxx/PTestRPCShutdownRace.ipdl => ipc/ipdl/test/cxx/PTestInterruptShutdownRace.ipdl
rename : ipc/ipdl/test/cxx/PTestRacyRPCReplies.ipdl => ipc/ipdl/test/cxx/PTestRacyInterruptReplies.ipdl
rename : ipc/ipdl/test/cxx/TestRPCErrorCleanup.cpp => ipc/ipdl/test/cxx/TestInterruptErrorCleanup.cpp
rename : ipc/ipdl/test/cxx/TestRPCErrorCleanup.h => ipc/ipdl/test/cxx/TestInterruptErrorCleanup.h
rename : ipc/ipdl/test/cxx/TestRPCRaces.cpp => ipc/ipdl/test/cxx/TestInterruptRaces.cpp
rename : ipc/ipdl/test/cxx/TestRPCRaces.h => ipc/ipdl/test/cxx/TestInterruptRaces.h
rename : ipc/ipdl/test/cxx/TestRPCShutdownRace.cpp => ipc/ipdl/test/cxx/TestInterruptShutdownRace.cpp
rename : ipc/ipdl/test/cxx/TestRPCShutdownRace.h => ipc/ipdl/test/cxx/TestInterruptShutdownRace.h
rename : ipc/ipdl/test/cxx/TestRacyRPCReplies.cpp => ipc/ipdl/test/cxx/TestRacyInterruptReplies.cpp
rename : ipc/ipdl/test/cxx/TestRacyRPCReplies.h => ipc/ipdl/test/cxx/TestRacyInterruptReplies.h
rename : ipc/ipdl/test/ipdl/error/rpcMessageCompress.ipdl => ipc/ipdl/test/ipdl/error/intrMessageCompress.ipdl
rename : ipc/ipdl/test/ipdl/error/tooWeakRPCAsync.ipdl => ipc/ipdl/test/ipdl/error/tooWeakInterruptAsync.ipdl
rename : ipc/ipdl/test/ipdl/ok/rpcProtocol.ipdl => ipc/ipdl/test/ipdl/ok/intrProtocol.ipdl
2013-09-30 17:27:45 -07:00