Nathan Froyd
f7ee3c3dbf
Bug 1281626 - part 5 - move nsRunnableFunction into mozilla::detail and rename it; r=khuey
...
We do this for similar reasons as nsRunnableMethod*: less prefixing and
a more obvious signal that this is a private implementation class.
2016-06-28 22:24:54 -04:00
Nathan Froyd
65715152b1
Bug 1281626 - part 4 - change NS_NewRunnableFunction to return already_AddRefed; r=khuey
...
This change makes it more consistent with NS_NewRunnableMethod and also
opens up optimization opportunities for later.
2016-06-28 22:24:54 -04:00
Nathan Froyd
8b24c9d51c
Bug 1281626 - part 3 - make various things accept already_AddRefed<nsIRunnable>; r=khuey
...
All of these things are called with the result of
NS_NewRunnableFunction, so we need to transition them over to a world
where NS_NewRunnableFunction returns something different.
2016-06-28 22:24:54 -04:00
Nathan Froyd
f624e16333
Bug 1281626 - part 2 - make RunnableMethod* internals final classes; r=khuey
...
This step is mostly tidiness.
2016-06-28 22:24:54 -04:00
Nathan Froyd
bcf3920031
Bug 1281626 - part 1 - move nsRunnableMethod* into mozilla::detail and rename them; r=khuey
...
Less ns-prefixing is more better. Also, this renaming makes clearer
that these classes are private implementation details, which is good,
because we're going to take advantage of that fact in a bit.
2016-06-28 22:24:54 -04:00
Kyle Huey
706b08a2a3
Bug 1267819: Add a diagnostic assertion. r=froydnj
...
--HG--
extra : rebase_source : b340fb72636948dcc2fa926599f386ce6ead412f
2016-06-28 10:47:23 -07:00
Kyle Huey
6baa905da7
Bug 1282527: Remove remaining PR_ASSERTs outside of NSPR/NSS. r=dbaron
...
--HG--
extra : rebase_source : a9dd69c772ef2641ee300d57d2a4d4c83003726c
2016-06-28 10:47:22 -07:00
Eric Rahm
878eac623e
Bug 1249352 - Part 4: Add a fallible NS_EscapeURL. r=froydnj
2016-06-27 11:10:46 -07:00
Boris Zbarsky
759bad9a0b
Bug 767938 part 11. Move the "safe JS context" to where it belongs: the CycleCollectedJSRuntime. r=bholley
2016-06-24 14:19:51 -04:00
Boris Zbarsky
53a1c93f93
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
Nathan Froyd
ea2b81ece8
Bug 1281257 - part 2 - make WalkTheStackCached an internal implementation detail; r=erahm
...
Nothing needs to call this outside nsTraceRefcnt, and given the
potential memory concerns, keeping it private is a better idea anyway.
2016-06-23 17:21:27 -04:00
Nathan Froyd
d98797b821
Bug 1281257 - part 1 - remove nsTraceRefcnt::DemangleSymbol; r=erahm
...
This function is unused, and the symbol demangling should all be handled
someplace else.
2016-06-23 17:21:27 -04:00
Kirk Steuber
5b3eba1f2b
Bug 1263774 - Include memory reports in content process crash reports. r=mccr8, r=aklotz
...
MozReview-Commit-ID: 7y3GFBZxjsS
--HG--
extra : rebase_source : 9d5aaaa6caad336c85c42002df321b382c90c8a9
2016-06-21 11:45:25 -07:00
Jan de Mooij
fb0436ba41
Bug 1279295 - Create the runtime's JSContext when we create the runtime. r=luke
2016-06-22 09:47:52 +02:00
Wei-Cheng Pan
ba7d93dbef
Bug 1261143 - Hack recursion depth in metastable state for Mac OS. r=khuey
2016-06-20 23:11:00 +02:00
Nathan Froyd
ddc458bf9e
Bug 1281227 - clarify comments in PLDHashTable.cpp; r=njn
...
Comments for SearchTable and FindFreeEntry refer to parameters that no
longer exist, now that we do things with template arguments. Let's fix
that.
2016-06-22 02:44:40 -04:00
Nathan Froyd
93107fb765
Bug 1281207 - delete unneeded contract and CIDs for nsTraceRefcnt; r=erahm
...
Nothing references these, so we might as well delete them.
2016-06-22 01:00:03 -04:00
Nathan Froyd
150bcb573b
Bug 1278925 - micro-optimize nsCOMArray appending with already_AddRefed AppendElement; r=erahm
...
In all of the places touched by this patch, the smart pointer we're
appending is about to become unused, so simply .forget()'ing its
reference into the appropriate nsCOMArray works just fine.
2016-06-20 18:38:10 -04:00
Thomas Zimmermann
89ae3af487
Bug 1276927: Fix breakpad to build on B2G, r=mshal
...
This patch unifies the include search directories for the breakpad
on B2G and Android, and protects breakpad-internal workarounds against
multiple definition.
As a side-effect of the patch set, no more Gonk-specific headers from
'gonk-include' are requried to build toolkit/ or xpcom/. The related
artifacts are removed by this patch.
MozReview-Commit-ID: E94I2rspDtJ
2016-06-16 08:43:51 +01:00
Sotaro Ikeda
f731d220ed
Bug 1252835 - Make TextureHost recycling implicit r=nical
2016-06-15 04:28:10 -07:00
Jan Varga
2d1e6d62c8
Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth
2016-06-15 11:49:04 +01:00
Jan Varga
b85865d615
Bug 1246828 - Part 1: Add an additional notification profile-before-change3 and update telemetry sending code to use it; r=asuth
2016-06-15 11:48:39 +01:00
Sebastian Hengst
277e158ff3
Backed out changeset a7cc17d184bd (bug 1276927)
2016-06-15 12:23:59 +02:00
Thomas Zimmermann
5693604fd0
Bug 1276927: Fix breakpad to build on B2G, r=mshal
...
This patch unifies the include search directories for the breakpad
on B2G and Android, and protects breakpad-internal workarounds against
multiple definition.
As a side-effect of the patch set, no more Gonk-specific headers from
'gonk-include' are requried to build toolkit/ or xpcom/. The related
artifacts are removed by this patch.
MozReview-Commit-ID: E94I2rspDtJ
2016-06-15 10:59:49 +01:00
David Anderson
52270601eb
Add GeckoProcessType_GPU. (bug 1271180 part 3, r=billm)
...
--HG--
extra : rebase_source : e983b161bf4d26dfc0de0e0da523a66ab25d7baa
2016-06-10 21:54:44 -04:00
Nomis101
083b9ba519
Bug 1279734 - "Fix two comment typos in nsTextFormatter.cpp". r=nfroyd
2016-06-11 10:41:45 +02:00
Phil Ringnalda
5e0adb7d56
Back out 5 changesets (bug 1271180) for static analysis bustage
...
CLOSED TREE
Backed out changeset cfb53b780b18 (bug 1271180)
Backed out changeset 204b084385f8 (bug 1271180)
Backed out changeset 353da876be33 (bug 1271180)
Backed out changeset 4472dfbc1dc6 (bug 1271180)
Backed out changeset 81079e787b8a (bug 1271180)
--HG--
rename : ipc/glue/TaskFactory.h => dom/plugins/ipc/TaskFactory.h
2016-06-11 00:46:09 -07:00
David Anderson
39defbc2f7
Add GeckoProcessType_GPU. (bug 1271180 part 3, r=billm)
...
--HG--
extra : rebase_source : 30353c82c34e03996ff0551330ebe86e2010cbaf
2016-06-10 21:54:44 -04:00
Ralph Giles
956493cd6e
Bug 1275744 - Reference MOZ_LOG in xpcom comments. r=erahm
...
NSPR_LOG_MODULES is deprecated.
MozReview-Commit-ID: Cel3JCLXLmp
--HG--
extra : rebase_source : da100ece62fd571d19a07455f8c256f5cd39f62b
2016-05-25 15:26:10 -07:00
Andrew McCreight
a9c0939624
Bug 1278796, part 5 - Move InitNextPointers into the PurpleBlock ctor. r=smaug
...
This makes sure that it will always happen, and should placate static
analyses.
2016-06-10 09:17:58 -07:00
Andrew McCreight
4877f53ebf
Bug 1278796, part 4 - Move InitNextPointers out of InitBlocks. r=smaug
...
This clears the way for the next patch.
2016-06-10 09:17:58 -07:00
Andrew McCreight
21a0cf7d40
Bug 1278796, part 3 - Inline StartBlock. r=smaug
...
This method doesn't do much, and in a later patch it will do even
less.
2016-06-10 09:17:57 -07:00
Andrew McCreight
6e83659330
Bug 1278796, part 2 - Initialize PurpleBlock next pointers in a method. r=smaug
2016-06-10 09:17:57 -07:00
Andrew McCreight
c1b7175950
Bug 1278796, part 1 - Inline |entries| in StartBlock. r=smaug
...
It is used inconsistently, which is confusing. A later patch will move
these into a PurpleBlock method, so the length shouldn't be an issue.
2016-06-10 09:17:57 -07:00
Till Schneidereit
b0d2250794
Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo
2016-03-22 16:22:24 +01:00
Jan de Mooij
8c1aaa3154
Bug 1278947 part 1 - Stop using JSContext callback in XPConnect. r=bz
...
--HG--
extra : rebase_source : 1e971a2a2a2a2b9068bd59d98156fa84b8f4b105
2016-06-10 09:27:14 +02:00
Eric Rahm
9f0aed4b73
Bug 1270310
- Part 2: Pass buffer length to Assign call in ConvertStringLineBreaks. r=froydnj
...
The length of the new buffer being assigned in ConvertStringLineBreaks has
already been calculated, so we can pass that in.
2016-05-05 15:52:16 -07:00
Eric Rahm
f5b4b3b7b8
Bug 1270310
- Part 1: Make allocation in ConvertStringLineBreaks fallible. r=froydnj, r=smaug
...
ConvertStringLineBreaks calls ConvertUnicharLineBreaksInSitu which uses
fallible allocation. We should make the potential allocation in |BeginWriting|
fallible as well and handle the failure. This also updates the callers to
|ConvertStringLineBreaks| to handle the error properly in release builds.
2016-05-05 15:50:35 -07:00
Nicholas Nethercote
5592622f09
Bug 1277104 - Add strings to high-frequency MOZ_CRASH() occurrences. mccr8.
...
Some of these are guesses; it's not always clear from a crash report stack
trace which MOZ_CRASH() was hit.
2016-06-09 13:09:58 +10:00
Gerald Squelart
e4f93ee534
Bug 1271593 - Unit test for NS_NewRunnableFunction - r=froydnj
...
Tests to verify that the number of copies and moves are as expected.
Also check that the runnable is fully self-contained and can be used after the
initial function objects have been destroyed or moved-from.
MozReview-Commit-ID: ArwIG9BEhDX
--HG--
extra : rebase_source : b2ee07294fcff17b76da468ddbaeb2b62d600536
2016-06-02 00:53:35 +02:00
Gerald Squelart
e8513ef5ee
Bug 1271593 - NS_NewRunnableFunction should forward its arg - r=froydnj
...
By perfect-forwarding its argument, we can automatically gain move semantics
optimization when storing the given function object into nsRunnableFunction.
Also it allows movable-only function objects.
Note that any reference is removed from the type to be stored, so that the
runnable always contain a concrete function object.
MozReview-Commit-ID: 9EZK84ZhMvR
--HG--
extra : rebase_source : e1f87c3284fda4df6d13839ea6a0b0c2ce196833
2016-06-02 01:21:36 +02:00
Nicholas Nethercote
829225e78d
Bug 1278452 - Remove a redundant null check in xpcom/glue/. r=froydnj.
...
There's another null check just a little earlier.
--HG--
extra : rebase_source : 24968e6bc5f12c3aa5d53711ebbb7f849c4501c3
2016-06-07 16:13:17 +10:00
Jan de Mooij
dad997a833
Bug 1277278 part 3 - Rename error reporter callback to warning reporter, assert it's only used for warnings. r=luke
...
--HG--
extra : rebase_source : ac1febc5220d649853f35c29de89a5e9ffb4fe98
2016-06-07 20:30:48 +02:00
Nathan Froyd
27e75b365b
Bug 1276540 - remove dead instrumentation in xptiInterfaceInfo.cpp; r=erahm
...
Doubt anybody has compiled with the appropriate #define in a while, and
there's no evidence of the associated DEBUG_* constants being used.
2016-06-07 17:09:41 -04:00
Wes Kocher
807cf956d8
Merge m-c to inbound, a=merge
2016-06-06 17:14:49 -07:00
Nathan Froyd
2be85aa542
Bug 1277890 - part 0 - add "append already_AddRefed element" API to nsCOMArray; r=erahm
2016-06-07 04:10:25 -04:00
Nicholas Nethercote
f0f5072443
Bug 1278156 - Remove useless null check in xp_iconv(). r=froydnj.
...
aOutputLeft is null checked and then dereferenced twice more in this function,
and all callers pass a non-null pointer. So just remove the null check.
--HG--
extra : rebase_source : 8190a51fde8434ac346a4e23db5ed4703762778c
2016-06-03 14:59:16 +10:00
ffxbld
219956a13e
Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release
2016-06-06 15:18:13 -04:00
Nicholas Nethercote
4f1d56df39
Backout 0ed86240bc77 for bustage.
2016-06-06 11:51:44 +10:00
Nicholas Nethercote
8bc7cd881e
Bug 1274148 (part 1) - Use MOZ_MUST_USE more in xpcom/io/Base64.h. r=erahm,bagder,mattwoodrow.
...
--HG--
extra : rebase_source : b468df852789a22e3d50a9580515bb6aa46784d5
2016-06-06 09:21:00 +10:00