Граф коммитов

534576 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote ea25e62e3c Bug 1360471 (part 4) - Use a bitfield to represent profiler features. r=mstange.
Currently the profiler mostly uses an array of strings to represent which
features are available and in use. This patch changes the profiler core to use
a uint32_t bitfield, which is a much simpler and faster representation.
(nsProfiler and the profiler add-on still use the array of strings, alas.) The
new ProfilerFeature type defines the values in the bitfield.

One side-effect of this change is that profiler_feature_active() now can be
used to query all features. Previously it was just a subset.

Another side-effect is that profiler_get_available_features() no longer incorrectly
indicates support for Java and stack-walking when they aren't supported. (The
handling of task tracer support is unchanged, because the old code handled it
correctly.)
2017-05-01 14:23:34 +10:00
Nicholas Nethercote cc78872f8c Bug 1360471 (part 3) - Rename various "thread name filters" identifiers as "filters". r=mstange.
The new names are more concise and matches common usage elsewhere (e.g.
profiler_start() arguments).

This patch is similar to bug 1358074 part 5.
2017-05-01 13:42:53 +10:00
Nicholas Nethercote ebe44f1856 Bug 1360471 (part 2) - Rename profiler_get_features() as profiler_get_available_features(). r=mstange.
It clarifies that it's not just the features chosen in profiler_start().
2017-05-01 12:07:17 +10:00
Nicholas Nethercote de4eac378e Bug 1360471 (part 1) - Make nsIProfilerStartParams only usable in C++. r=mstange.
The patch also makes the |entries| and |interval| fields readonly, because they
are never changed.
2017-05-01 11:53:18 +10:00
Jim Chen 15251765f1 Bug 1360291 - Produce android version codes for AArch64/ARM64 Fennec; r=nalexander
Add AArch64/ARM64 support to the script that produces android version
codes. Use the same scheme for AArch64 as x86, since the two
architectures don't overlap, and AArch64 should override ARM just like
x86 should override ARM.
2017-05-04 19:19:31 -04:00
Jim Chen 055a903128 Bug 1360291 - Detect NDK version number; r=nalexander
Detect the NDK major/minor version numbers, and feed that to Breakpad.
For AArch64, some Breakpad headers try to workaround NDK oddities by
checking the ANDROID_NDK_MAJOR_VERSION and ANDROID_NDK_MINOR_VERSION
macros.
2017-05-04 19:19:31 -04:00
Jim Chen 5a39ae87ca Bug 1360291 - Set minimum NDK platform version to 21 for 64-bit builds; r=nalexander
64-bit is only supported in android-21 and above in the NDK.
2017-05-04 19:19:30 -04:00
Jim Chen 8d537c0b39 Bug 1360629 - Update NDK on builders to include AArch64/ARM64 support; r=nalexander
Use a new version of the packaged NDK that includes AArch64/ARM64
support and includes the 'source.properties' file, so we can detect the
NDK version.
2017-05-04 19:19:30 -04:00
L. David Baron 5191ef7b3b Bug 1352889 - Ensure that PLDHashTable's second hash doesn't have padding with 0 bits for tables with capacity larger than 2^16. r=njn
PLDHashTable takes the result of the hash function and multiplies it by
kGoldenRatio to ensure that it has a good distribution of bits across
the 32-bit hash value, and then zeroes out the low bit so that it can be
used for the collision flag.  This result is called hash0.  From hash0
it computes two different numbers used to find entries in the table
storage:  hash1 is used to find an initial position in the table to
begin searching for an entry; hash2 is then used to repeatedly offset
that position (mod the size of the table) to build a chain of positions
to search.

In a table with capacity 2^c entries, hash1 is simply the upper c bits
of hash0.  This patch does not change this.

Prior to this patch, hash2 was the c bits below hash1, padded at the low
end with zeroes when c > 16.  (Note that bug 927705, changeset
1a02bec165e16f370cace3da21bb2b377a0a7242, increased the maximum capacity
from 2^23 to 2^26 since 2^23 was sometimes insufficient!)  This manner
of computing hash2 is problematic because it increases the risk of long
chains for very large tables, since there is less variation in the hash2
result due to the zero padding.

So this patch changes the hash2 computation by using the low bits of
hash0 instead of shifting it around, thus avoiding 0 bits in parts of
the hash2 value that are significant.

Note that this changes what hash2 is in all cases except when the table
capacity is exactly 2^16, so it does change our hashing characteristics.
For tables with capacity less than 2^16, it should be using a different
second hash, but with the same amount of random-ish data.  For tables
with capacity greater than 2^16, it should be using more random-ish
data.

Note that this patch depends on the patch for bug 1353458 in order to
avoid causing test failures.

MozReview-Commit-ID: JvnxAMBY711

--HG--
extra : rebase_source : dbde93b9312dd10fb3a549ee4098b57e1df5cadf
2017-05-04 15:17:50 -07:00
L. David Baron c364774efb Bug 1353458 - Make test_cert_blocklist more flexible about order of lines in revocations.txt. r=keeler
This allows patches to land that will change the hashtable enumeration
order, which in turn changes the ordering of the lines in
revocations.txt.

MozReview-Commit-ID: Fyuahnpky6g

--HG--
extra : rebase_source : 1e918481db566213205e330f33d6b00bdc3b4f11
2017-05-04 15:17:50 -07:00
Mark Banner 0f020586ea Bug 1356243 - Enable Screenshots by default. r=Mossop
MozReview-Commit-ID: 9g7dLGzI1Hg
2017-04-30 17:20:28 +01:00
Nathan Froyd 844bb853dd Bug 1362390 - make Base64Encode tolerant of allocation failures; r=mccr8 2017-05-05 11:33:36 -04:00
Nathan Froyd 880d162a51 Bug 1362194 - part 3 - make Base64Decode even more tolerant of allocation failures; r=mccr8
The lossy conversion to ASCII here can also fail; we should handle that
as well.  Rewriting the code to use MakeScopeExit also avoids tangled
logic and/or duplicating calls to ensure the destination string is
truncated on failure.
2017-05-05 11:33:36 -04:00
Nathan Froyd 8b000da91e Bug 1362194 - part 2 - make Base64Decode tolerant of allocation failures; r=mccr8
We need to use a fallible CopyASCIItoUTF16 function, since we might not
have enough memory to perform the copy.
2017-05-05 11:33:36 -04:00
Nathan Froyd f6465f98b9 Bug 1362194 - part 1 - add a fallible CopyASCIItoUTF16 function; r=mccr8
We already have all the machinery to expose a function like this, we
just need to write it.
2017-05-05 11:33:36 -04:00
Neil Deakin 38846a0f8f Bug 1358713, when a popup's anchor does not have a frame originally, don't have the popup update its position to follow it, r=tn 2017-05-05 11:13:56 -04:00
James Willcox 5d0885869a No bug, fix up checkstyle failure NOBUILD
MozReview-Commit-ID: 3itUJgA2AKg
2017-05-05 09:14:35 -05:00
James Willcox 1a52479e8f Bug 1322650 - Don't use AndroidBridge to get API version in media stack r=jolin
AndroidBridge is not available in child processes.

MozReview-Commit-ID: KlBs8F1Bu1O
2017-05-05 08:56:40 -05:00
James Willcox 2fec319cd5 Bug 1322650 - Add jni::GetAPIVersion() to get Android API version r=jchen
MozReview-Commit-ID: EfPMfS7RmcH
2017-05-05 08:56:39 -05:00
James Willcox daee505699 Bug 1322650 - Update JNI bindings r=jchen
MozReview-Commit-ID: EjRjyY8BQxw
2017-05-05 08:56:38 -05:00
James Willcox 9392b1227a Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-05 08:56:36 -05:00
James Willcox f8f0fe9303 Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-05 08:56:35 -05:00
James Willcox 086a858585 Bug 1322650 - Don't use inout param for Surface in ICodec r=jolin
It's unnecessary, and the serialization goes wrong with GeckoSurface on the return trip.

MozReview-Commit-ID: 9DUMoLQFhlv
2017-05-05 08:56:34 -05:00
James Willcox e92f96eef9 Bug 1322650 - Make video decoding work with new SurfaceTexture API r=jolin
MozReview-Commit-ID: EXQ5YDSMMGL
2017-05-05 08:56:32 -05:00
James Willcox 83de9ddd9d Bug 1322650 - Allow access to TexturePoolOGL from Java r=jchen 2017-05-05 08:56:31 -05:00
James Willcox 2e6e69148c Bug 1322650 - Disable blitting from a SurfaceTexture r=jgilbert
This has been broken for a while anyway, because we
disabled SurfaceTexture detachment in most cases.

MozReview-Commit-ID: 6ysRGDNCQa0
2017-05-05 08:56:30 -05:00
James Willcox a7f7a7b630 Bug 1322650 - Use SurfaceTexture for WebGL on Android in E10S r=jgilbert
The main advantage here is that it works cross-process.

MozReview-Commit-ID: 7YUTVB4Bydg
2017-05-05 08:56:28 -05:00
James Willcox 6b95623eac Bug 1322650 - Add GeckoSurfaceTexture, GeckoSurface and associated Android Service r=jchen
This allows us to allocate an Android SurfaceTexture in the compositor process as well
as an accompanying Surface. We can then transfer the Surface back to the content process
via binder, where it can be used for things like WebGL and video decoding.

Each SurfaceTexture/Surface pair has a unique handle. We use this handle in
layer transactions to locate the SurfaceTexture for a given Surface and composite it
appropriately.

MozReview-Commit-ID: 68VSbXdfsMH
2017-05-05 08:56:27 -05:00
Carsten "Tomcat" Book 170faef00b Merge mozilla-central to mozilla-inbound 2017-05-05 15:25:16 +02:00
Andrea Marchesini 33e3c76f21 Bug 1360807 - FileReaderSync must work with sync inputStream - part 4 - Base64EncodeInputStream needs a sync inputStream, r=smaug 2017-05-05 14:45:14 +02:00
Andrea Marchesini cffbaf4514 Bug 1360807 - FileReaderSync must work with sync inputStream - part 3 - tests, r=smaug 2017-05-05 14:45:12 +02:00
Andrea Marchesini ac75e334d3 Bug 1360807 - FileReaderSync must work with sync inputStream - part 2 - nsIConverterInputStream needs a syncInputStream, r=smaug 2017-05-05 14:44:18 +02:00
Andrea Marchesini 8e58d3e350 Bug 1360807 - FileReaderSync must work with sync inputStream - part 1 - SyncRead should read as much as required, r=smaug 2017-05-05 14:43:58 +02:00
Tim Taubert 00fc6cad00 Bug 1362058 - Further limit the amount of sessionStorage data we store and serialize r=mikedeboer 2017-05-05 12:17:09 +02:00
Thinker K.F. Li 70bcac7cb4 Bug 1342009 - Provide a shortcut in BuildDisplayListForChild. r=mattwoodrow 2017-05-04 02:06:00 +08:00
Jessica Jong c24d2c4ce4 Bug 1335150 - Update test_bug394700 to use .remove instead of .parentNode.removeChild. r=smaug
MozReview-Commit-ID: GTa5x3Ozea8
2017-05-03 01:14:00 +08:00
gabriellesc 101b34decc Bug 1293495 - Wrote a test for mutation observer when iterationComposite is changed. r=boris 2017-05-04 20:27:02 -04:00
Kris Maglione d33959634b Bug 1359653: Part 4 - Fallback to the default JS version when decoding regexps off-thread. r=shu
When decoding off-thread, we can't safely access the JS runtime to get the
current JS version, and doing so causes failed assertions.

MozReview-Commit-ID: Lra437aa8SM

--HG--
extra : source : 16259c1af36e138881d18a3f8b0a803f5d4fc3ec
2017-04-28 11:55:52 -07:00
Kris Maglione 7d8720d597 Bug 1359653: Part 3 - Add a clear() method and move asssignment operator to AutoCleanLinkedList. r=waldo
MozReview-Commit-ID: 2bUTMPviJzg

--HG--
extra : source : b49bd726c8a6e955c672df17b2b9134ab3ad34d5
2017-05-02 17:54:18 -07:00
Kris Maglione 16393582a7 Bug 1359653: Part 2 - Allow CloneAndExecuteScript with non-lexical scripts. r=shu
MozReview-Commit-ID: Hq3rvgjwH3f

--HG--
extra : source : 3f94cd9d95b99436ea5f77aee5d220092b6b32d6
2017-05-02 17:53:51 -07:00
Kris Maglione 81232b555a Bug 1359653: Part 1 - Use a const Range rather than a Vector for XDR decoding. r=shu
MozReview-Commit-ID: JkGNmOAKAxD

--HG--
extra : source : 473e6a1ef169a9ac556486680306b9c286774b74
2017-05-05 15:47:10 -07:00
Kim Moir 5f874863a8 Bug 1356122 - Run Stylo tests in sequential mode r=aki 2017-05-06 14:10:54 -04:00
Jonathan Kew 7efc47d89a Bug 1361392 - Re-use the hb_buffer in gfxHarfBuzzShaper instead of creating/destroying it on each call to ShapeText. r=jrmuizel 2017-05-02 16:41:42 +01:00
Marco Castelluccio 4d753fcb37 Bug 1362478 - Disable sandbox in the code coverage build, as it prevents content processes from updating gcda files. r=jmaher
--HG--
extra : rebase_source : 42cfc10c7628f6f0fb9479dcc2bcb8b38477b4b5
2017-05-05 18:31:45 +02:00
Sebastian Hengst 6107141ae1 Backed out changeset 473e6a1ef169 (bug 1359653) for rooting hazard and crashing during Marionette's test_quit_restart.py TestQuitRestart.test_in_app_restart_with_callback with [@ js::gc::MergeCompartments] on Linux debug builds. r=backout 2017-05-06 11:06:46 +02:00
Sebastian Hengst 2ca2a7bdb3 Backed out changeset 3f94cd9d95b9 (bug 1359653) 2017-05-06 11:02:37 +02:00
Sebastian Hengst d8a3163a9b Backed out changeset b49bd726c8a6 (bug 1359653) 2017-05-06 11:02:32 +02:00
Sebastian Hengst 7238fa169d Backed out changeset 16259c1af36e (bug 1359653) 2017-05-06 11:02:27 +02:00
Sebastian Hengst 544da0524c Backed out changeset 1c7df9455059 (bug 1359653) 2017-05-06 11:02:23 +02:00
Sebastian Hengst a71ff9882a Backed out changeset a505dcbe8a02 (bug 1359653) 2017-05-06 11:02:18 +02:00