Commit Graph

6811 Commits

Author SHA1 Message Date
Wes Kocher
fd30a93083 Merge inbound to m-c a=merge 2016-01-05 16:02:49 -08:00
Carsten "Tomcat" Book
361f37d171 Merge mozilla-central to b2g-inbound 2016-01-05 12:03:29 +01:00
Gabriele Svelto
02c6df1d54 Bug 1234176 - Introduce and use the WriteSysFile() helper function. r=dhylands 2015-12-29 11:49:50 +01:00
Terrence Cole
d475e5ed08 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug 2015-12-30 08:52:14 -08:00
Felix Janda
100705a4c7 Bug 1203272 - Fix build of nsMemoryReporterManager on linux systems without mallinfo(). r=glandium,njn. 2016-01-01 11:10:54 +01:00
Bogdan Postelnicu
064b85fef8 Bug 1234542 - Don't use fallible Add in SetStringProperty. r=froydnj 2016-01-04 07:14:00 -05:00
Nicholas Nethercote
88dd3dcc0e Bug 1232219 (part 4) - Enable -Wunused for C code, except where it's too annoying. r=glandium. 2015-12-16 22:59:42 -08:00
Nathan Froyd
3b3cf8dba0 No bug - remove tab from xpcom/test/gtest/moz.build file; r=me
DONTBUILD because whitespace only changes are always green.
2016-01-04 16:17:53 -05:00
Mike Conley
ebaada53a6 Bug 1221846 - Get Task Tracer building on desktop r=cyu. 2015-12-02 20:55:38 -05:00
Nathan Froyd
def3ec5689 Bug 1234860 - move win32 NS_InvokeByIndex implementation to a separate assembly file; r=aklotz,ted.m
On win32, NS_InvokeByIndex is implemented with inline assembly.  This
inline assembly assumes that it is wrapped by the compiler with the
standard x86 prologue and epilogue:

    push ebp
    mov ebp, esp
    [inline assembly that manipulates the stack pointer]
    pop ebp
    ret

In particular, the last instruction of the inline assembly is:

    mov esp, ebp

which cancels out the effects of the stack manipulation performed by all
the inline assembly that proceeds the instruction.

When compiling with clang-cl, however, the above assumption does not
hold, as clang-cl inserts a more complex prologue and epilogue,
something like:

    push ebp
    mov ebp, esp
    sub esp, frame_size
    [save registers into stack frame]
    [inline assembly that manipulates the stack pointer]
    [restore registers from stack frame]
    add esp, frame_size
    mov esp, ebp
    pop ebp
    ret

Combining this more extensive prologue and epilogue with the assumptions
of the inline assembly leads to interesting crashes when
NS_InvokeByIndex is called: the inline assembly effectively deallocates
the stack allocated by the inline assembly *and* the stack frame
allocated by the compiler itself.  The compiler-generated code then
attemptes to deallocate the stack frame, leading to the crash, as the
code now returns to an unspecified address.

To avoid these sorts of problems in clang-cl and make the code more
robust generally, let's move the NS_InvokeByIndex implementation to a
separate assembly file.  We can then write exactly what we need to have
happen, safe from any manipulations of the compiler.

Since we don't compile much (any?) code in Gecko with MASM, we need to
add the /SAFESEH flag to the assembler invocation so that the object
file with be appropriately marked as not containing exception handlers;
the linker (which is invoked with the /SAFESEH flag itself) will then
consent to link it into libxul.
2015-12-23 11:45:38 -05:00
Wes Kocher
e5d3cfcb59 Backed out 2 changesets (bug 1235598) for linux reftest bustage
Backed out changeset 3bcd3c276785 (bug 1235598)
Backed out changeset 80cd10a8b3d7 (bug 1235598)
2015-12-31 15:51:13 -08:00
Terrence Cole
ff752ad675 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug 2015-12-30 08:52:14 -08:00
Olli Pettay
9ca85488af Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence 2015-12-31 15:21:49 +02:00
Makoto Kato
022481a191 Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan 2015-12-29 22:57:38 +09:00
Wes Kocher
7e6ad693df Backed out changeset 0d55a6e4e98e (bug 1120016) for 980 b2g hazards 2015-12-30 16:34:18 -08:00
Terrence Cole
3f5182646c Backout Bug 1235598 Part 2 because of merge bustage on a CLOSED TREE 2015-12-30 15:05:24 -08:00
Terrence Cole
b37986abd9 Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug 2015-12-30 08:52:14 -08:00
Jeff Walden
0195fbed46 Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence 2015-12-28 16:15:52 -06:00
Olli Pettay
6e3b3ad7d8 Bug 1120016 - Allocate short lived JS wrappers in the Nursery, r=mccr8,terrence 2015-12-30 19:16:13 +02:00
Sebastian Hengst
6d49554a7c Backed out 15 changesets (bug 1208944) for failing tests M(2,5) on OSX. r=backout
Backed out changeset c29de223de2f (bug 1208944)
Backed out changeset 3d99da255be1 (bug 1209844)
Backed out changeset 3c915942af38 (bug 1209844)
Backed out changeset 759b425b5503 (bug 1208944)
Backed out changeset bf73cf8f0fda (bug 1208944)
Backed out changeset 0e337d912b7d (bug 1208944)
Backed out changeset 31c47f2980b5 (bug 1208944)
Backed out changeset 3e0d70a6e809 (bug 1208944)
Backed out changeset 7685dcb63e5f (bug 1208944)
Backed out changeset 3c2b9372dd36 (bug 1208944)
Backed out changeset 18160d306493 (bug 1208944)
Backed out changeset 4974e397b655 (bug 1208944)
Backed out changeset fde7e439844d (bug 1208944)
Backed out changeset 4213a355fbdc (bug 1208944)
Backed out changeset 33cfddbbf5f2 (bug 1208944)
2015-12-29 17:42:02 +01:00
Makoto Kato
377e2b8a02 Bug 1208944 - Part 4. nsWindowsDllInterceptor supports IMM32 API hook. r=ehsan 2015-12-29 22:57:38 +09:00
Sebastian Hengst
b847ef85e6 Backed out changeset 6daddfb64d72 (bug 1228437) for timing out in test_NuwaProcessCreation.html on B2G ICS emulator debug. r=backout 2015-12-27 23:33:02 +01:00
Vladan Djeric
42296bd93b Bug 1228437 - Add BHR stats from e10s child process. r=nchen 2015-12-26 19:34:11 -05:00
Jeff Muizelaar
de17036a07 Bug 1234618. Fix misdetected BHR hangs. r=jchen
A bunch of threads have their wait time set to PR_INTERVAL_NO_TIMEOUT and so
we divide this by 4 and set waitTime to that. This causes us to wait a very
long but not PR_INTERVAL_NO_TIMEOUT amount of time and so we still update
mIntervalNow and think that we've been hung for a long time when comparing
to the mInterval in the current thread which is set to the previous value of
mIntervalNow.
2015-12-22 18:33:51 -05:00
Chris Peterson
a2b834910d Bug 1234126 - Add Chaos Mode support for setting thread affinity on OS X and Windows. r=froydnj 2015-11-30 19:16:40 -08:00
Geoff Brown
dcf98bec0d Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher 2015-12-21 14:24:08 -07:00
Kit Cambridge
7795dc0547 Bug 1205137 - Add a PushSubscription serializer. r=mt,smaug 2015-12-14 16:28:19 -08:00
Andrew McCreight
276cbcc7b8 Bug 1231964 - Move CC participant code that touches JS out of mozglue. r=smaug
The JS engine does not export symbols outside of XUL, so having these
defined inside mozglue apparently causes linking errors on some
platforms with the patches in bug 1120016.

This patch moves enough methods outside of mozglue that the patch in
that other bug will still link on all platforms, without moving so
much out that there are other linking errors.
2015-12-18 14:22:01 -08:00
Birunthan Mohanathas
d631d7a48e Bug 1227569 - Remove unsupported OpenVMS code. r=mccr8 2015-12-18 15:02:50 +02:00
Andrea Marchesini
0962b374a9 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-18 08:44:00 +00:00
Daniel Holbert
c9dd5c94cc Bug 1233566: Drop unnecessary newline character from NS_WARNING in nsPersistentProperties. r=froydnj 2015-12-17 15:07:08 -08:00
Sebastian Hengst
18829a9e77 Backed out changeset 30839ee209e8 (bug 901097) for mochitest failures on Android and Mulet. r=backout 2015-12-17 14:13:59 +01:00
Andrea Marchesini
1a046036d9 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-17 12:00:35 +00:00
Makoto Kato
afd97d61aa Bug 1233283 - Remove unless tmp from ReadDir in nsLocalFileWin. r=froydnj 2015-12-17 13:55:38 +09:00
Aaron Klotz
b81eb38afa Bug 1233208: Disable IOInterposer on Beta and Release; r=froydnj 2015-12-16 14:36:44 -07:00
Wes Kocher
08358b3f37 Backed out changeset 84c8783b8518 (bug 901097) for test_fileReader.html crashes CLOSED TREE 2015-12-16 09:43:42 -08:00
Andrea Marchesini
26c1938206 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-16 12:37:31 +00:00
Carsten "Tomcat" Book
88a5cd026e Backed out changeset d74d1e794421 (bug 901097) for bustage on a CLOSED TREE 2015-12-16 11:48:40 +01:00
Andrea Marchesini
a0d04dad85 Bug 901097 - FileReader API in workers, r=sicking, r=nfroyd 2015-12-16 10:15:03 +00:00
ffxbld
b449346661 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2015-12-14 15:15:51 -05:00
Jim Mathies
fbdb9901db Bug 1198459 - Prevent accessibility from initializing in content processes when e10s is running. r=tbsaunde 2015-12-10 14:28:33 -05:00
Carsten "Tomcat" Book
22ca09e4b0 Backed out changeset bcb4ebf6ffac (bug 1198459) for bustage 2015-12-10 11:14:27 +01:00
Jim Mathies
06f24062b9 Bug 1198459 - Prevent accessibility from initializing in content processes when e10s is running. r=tbsaunde 2015-12-09 08:35:06 -05:00
Andrea Marchesini
b47ee21ee3 Bug 1231100 - Get rid of nsIDOMFileReader - patch 1, r=sicking 2015-12-09 15:52:15 -05:00
Jonathan Kew
4f8194a3d5 Backout changeset aad9086f8efd (bug 1226376) for breaking Opt static-analysis build. 2015-12-09 13:21:42 -05:00
Michael Layzell
72b793bef5 Bug 1226376 - Annotate StaticMutex with MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS, r=nfroyd 2015-12-09 11:34:29 -05:00
Andrea Marchesini
ef37f27d71 iBug 1122788 - patch 2 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz 2015-12-05 09:36:51 +00:00
Andrea Marchesini
13a13a19a8 Bug 1122788 - patch 1 - nsMultiplexInputStream should not use Tell() in debug builds, r=bz 2015-12-05 09:35:49 +00:00
Mike Hommey
1c73cd386d Bug 1227023 - Include the Gtk+3 version in update URL if available on Gtk+2 builds. r=karlt
Instead of giving the Gtk+2 version.
2015-12-05 11:04:21 +09:00
Wes Kocher
3b3753013d Backed out changeset d271b9e473fd (bug 1122788) for being a possible cause of test_fileapi.html bustage CLOSED TREE 2015-12-04 15:21:24 -08:00