Kyle Huey
c1f8ae3c88
Bug 1268313: Fix up IPDL tests. r=billm
2016-05-09 11:00:31 -07:00
Eric Rahm
f8f1218f4e
Bug 1268616 - Part 3: Reduce the maxmimum IPC message size. r=billm
...
This reduces the maximum message size to 128MiB which matches what is done
upstream. The goal is to help reduce OOMs due to overly large messages.
2016-05-04 19:20:19 -07:00
Eric Rahm
9caf0110e8
Bug 1268616 - Part 2: Stop sending messages that are too large. r=billm
2016-05-04 17:38:53 -07:00
Eric Rahm
1e768352f4
Bug 1268616 - Part 1: Check max message size before resizing. r=billm
2016-05-04 17:25:41 -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
44cee0989e
Bug 1268313: Part 6 - Replace NewRunnableMethod with NS_NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Kyle Huey
156b8c1933
Bug 1268313: Part 4 - Replace NewCancelableRunnableMethod with NS_NewCancelableRunnableMethod. r=froydnj
2016-05-05 01:44:59 -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
Thomas Zimmermann
649a51e22d
Bug 1267214: Add |DBusConnectionDelete| for using |DBusConnection| with |UniquePtr|, r=shuang
...
The new helper |DBusConnectionDelete| deletes instances of |DBusConnection|
that are stored in a |UniquePtr|. It will close open connections before un-
ref'ing them.
For shared DBus connections, continue to use |RefPtr|.
MozReview-Commit-ID: 5BASyiMrL4P
2016-05-04 11:41:07 +02:00
Kyle Huey
b15d2f593c
Bug 1266595: Followup to fix IPDL tests. r=billm
...
--HG--
extra : rebase_source : a0142b175ef1e0d46a6139dccdbdb8b7debda1c9
2016-05-03 22:36:50 -07:00
Andrew McCreight
a1f8b0904f
Bug 1269365, part 3 - Use infallible array allocation in implementSpecialArrayPickling. r=froydnj
...
As with part 2, this will turn some allocation failures during
deserialization from IPC FatalError crashes into OOM crashes.
2016-05-03 09:29:39 -07:00
Andrew McCreight
0b08b02edb
Bug 1269365, part 2 - Make ParamTraits<nsTArray<E>>::Read use infallible allocation. r=froydnj
...
This will turn allocation failures during deserialization from IPC
FatalError crashes into OOM crashes.
2016-05-03 09:29:39 -07:00
Andrew McCreight
6266959835
Bug 1269365, part 1 - Swap fallible and infallible TArray ParamTraits. r=froydnj
...
This should not change the behavior, because fallible_t is passed to
the array methods.
Rename from InfallibleTArray to nsTArray, because that is more usual.
Remove unnecessary spaces from some template definitions.
2016-05-03 09:29:39 -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
Thomas Zimmermann
42c137c01d
Bug 1268432: Replace |Task| with |Runnable| in B2G code r=fabrice
...
This patch converts the remaining B2G code from |Task| to |Runnable| and
fixes related API calls. This is a follow-up to bug 1266595.
2016-05-02 10:27:15 -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
4bb6f48de3
Backed out changeset 6a8d57e8fa8e (bug 1268313)
...
--HG--
extra : rebase_source : 8690897fd41073f22c8b25db5e8ce88df76a2bb7
2016-04-29 14:21:22 +02:00
Carsten "Tomcat" Book
de92769e7e
Backed out changeset 4bcb784492bb (bug 1268313)
...
--HG--
extra : rebase_source : f2f752ab73f5bbf31a909892a0fac0f42c894430
2016-04-29 14:21:18 +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
Nicholas Nethercote
2511b2c327
Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
...
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.
MozReview-Commit-ID: 1VS4Dney4WX
--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10: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
12d497cb39
Bug 1268313: Part 6 - Replace NewRunnableMethod with NS_NewRunnableMethod. r=froydnj
2016-04-28 14:08:24 -07:00
Kyle Huey
c724d0c867
Bug 1268313: Part 4 - Replace NewCancelableRunnableMethod with NS_NewCancelableRunnableMethod. r=froydnj
2016-04-28 14:08:24 -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
Andrew McCreight
b24fdb8375
Bug 1268130, part 2 - Make ByteLengthIsValid failures fatal in release builds. r=froydnj
...
This will stop us from sending truncated messages, which will make the
receiver crash.
2016-04-28 10:00:46 -07:00
Andrew McCreight
17fc7463dd
Bug 1268130, part 1 - Reimplement ByteLengthIsValid using CheckedInt. r=froydnj
...
The first check in ByteLengthIsValid() says "nsTArray only handles
sizes up to INT32_MAX", but the actual requirement is that the
capacity is no larger than UINT32_MAX. The check is overly restrictive
if sizeof(E) is 1 byte, and overly permissive if sizeof(E) is greater
than 2 bytes. I removed this check. Internal nsTArray invariants
should be enforced by nsTArray methods.
The second check is trying to check for overflow, but that should just
be done using CheckedInt.
2016-04-28 10:00:46 -07:00
Thomas Zimmermann
6f916378f6
Bug 1266954: Remove temporary |ScopedClose| from PDU receive code, r=jacheng
...
|ScopedClose| doesn't support temporary objects. This patch removes it.
2016-04-28 10:57:19 +02: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
Yoshi Huang
7ae2e09f40
Bug 1263496 - Part 2: fix for NS_NULLPRINCIPAL_CONTRACTID. r=bholley
...
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=NS_NULLPRINCIPAL_CONTRACTID&redirect=true
2016-04-27 18:38:03 +08:00
Gregor Wagner
acecad8f82
Bug 1267577
- Move nsRunnable to mozilla::Runnable. r=gsvelto
2016-04-27 12:05:40 +02:00
Bill McCloskey
a179f9fce9
Bug 1264820 - Measure IPC reply size in telemetry (r=mccr8)
2016-04-26 13:50:56 -07:00
Kyle Huey
c73656947b
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Bas Schouten
a7d662a2b1
Bug 1262898: Keep the GeckoChildProcessHost alive for the lifetime of the CompositorBridge and ImageBridge parent actors. r=jimm r=nical
...
MozReview-Commit-ID: 1rsWqRpbhgN
2016-04-25 03:54:07 +00:00
Jacek Caban
2ef6ade2c4
Bug 1258317 - cross compilation fixup.
2016-04-23 13:04:59 +02:00
Andrew McCreight
f2d40800c8
Bug 1266578 - OOM crash if malloc fails in ProcessIncomingMessages(). r=billm
...
This allocation is for no more than 32kb, so make it infallible rather than try to recover.
2016-04-21 15:23:25 -07:00
Gabor Krizsanits
ed1fa0cf48
Bug 1263953 - Reduce the growth rate of Pickle. r=wmccloskey
2016-04-21 15:09:35 +02:00
Cervantes Yu
a7ec2e32a7
Bug 1258317 - Part 1: Annotate the crash report with process information on failure to transfer an IPC transport to another process. r=krizsa
...
MozReview-Commit-ID: LE2FnrQgzze
--HG--
extra : rebase_source : ff891052985ae8411725f7df7c21eaacae84732f
2016-04-19 19:08:55 +08: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
Thomas Zimmermann
bfa5556aa6
Bug 1264887: Make DBus helpers available on desktop builds, r=shuang
2016-04-19 16:26:01 +02:00
Carsten "Tomcat" Book
d42e16c441
Backed out changeset fdac1cd6e6e0 (bug 1264887) for static build bustage
...
--HG--
extra : rebase_source : cae1e97ee51fbfccb5de1eaed82302539ae3e9ac
2016-04-19 12:07:33 +02:00
Thomas Zimmermann
6bbc2790c5
Bug 1264887: Make DBus helpers available on desktop builds, r=shuang
2016-04-19 11:09:01 +02:00