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

625 Коммитов

Автор SHA1 Сообщение Дата
Jed Davis f45414c2f0 Bug 1133073 - Use PR_DuplicateEnvironment to avoid post-fork malloc on all Linux platforms. r=dhylands 2016-01-11 14:17:01 -08:00
Jed Davis 64f3bc56b6 Back out 7f6bb9f7e60d (bug 1133073) for bustage. Sorry about that. 2016-01-11 13:29:53 -08:00
Jed Davis a73c98c3e5 Bug 1133073 - Use PR_DuplicateEnvironment to avoid post-fork malloc on all Linux platforms. r=dhylands 2016-01-11 12:46:50 -08:00
Nicholas Nethercote ec89bbf7f2 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Chris Peterson bcbe81d63d Bug 1235234 - Fix unintentional switch fallthrough in ipc/chromium/ found by -Wimplicit-fallthrough warning. r=gcp
ipc/chromium/src/base/process_util_mac.mm:132:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-22 22:10:24 -08:00
Anup Kumar 77710725de Bug 1201492 - Remove extended_statistics_ok from Telemetry histograms. r=dexter 2015-12-21 08:31:00 +01:00
Jan Beich fa002c319a Bug 1231123 - Simplify LaunchApp on BSDs by dropping fork/exec version. r=jld
--HG--
extra : transplant_source : 2%08%3De%92%DE%D7%A9%AF%F7%A1%13yU%A2Y%3DiAn
2015-12-03 12:55:41 +00:00
Jan Beich 59274cab04 Bug 1231109 - Drop FreeBSD checks for unsupported versions. r=jld r=jesup
--HG--
extra : transplant_source : P%FC%E3%29%07%05%D4%8DA%A7%89%90%26%B4%D5%E2%60%89%0C%B0
2015-12-03 12:28:22 +00:00
Avi Halachmi 6984fc0759 Bug 1228147: part 1: Add telemetry RecordingEnabled support. r=gfritzsche f=froydnj 2015-12-16 20:06:40 +02:00
Wes Kocher 0f6a2a587a Backed out 2 changesets (bug 1228147) for build failures in histogram.h on a CLOSED TREE
Backed out changeset 35b4ba91e093 (bug 1228147)
Backed out changeset 8a2f45c8d25d (bug 1228147)

--HG--
extra : commitid : Atv8AVyyd9h
2015-12-16 09:27:37 -08:00
Avi Halachmi 8b5b3ca720 Bug 1228147: part 1: Add telemetry RecordingEnabled support. r=gfritzsche f=froydnj 2015-12-16 16:39:57 +02:00
Ted Mielczarek 288258a78d bug 1223529 - remove ipc/chromium/Makefile.in. r=gps
--HG--
extra : commitid : H9gHRycMIGd
extra : rebase_source : 0f96f1f1eb9ddea4ba1310637d6ff36312fc3030
2015-11-10 05:51:44 -05:00
Bill McCloskey 12a5e6cc5d Bug 1221371 - Remove unused Chromium callback code (r=jld) 2015-11-09 10:21:11 -08:00
Bill McCloskey f8aa3d2562 Bug 1221371 - Switch chromium IPC code to use mozilla::Tuple (r=jld,cpearce,kats) 2015-11-09 10:21:11 -08:00
Mike Hommey 762aba02cd Bug 1221453 - Use ObjDirPaths for GENERATED_INCLUDES and merge with LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
Mike Hommey e855ef1662 Bug 1221453 - Use SourcePaths for LOCAL_INCLUDES. r=gps 2015-11-06 09:59:21 +09:00
huangwenjun c8f2fb627f Bug 1218681 - add plugin-container standalone process code. The Code associate with ARCH. r=hev
---
 dom/plugins/ipc/PluginProcessParent.cpp | 3 +++
 ipc/chromium/src/base/process_util.h    | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
2015-10-29 22:19:43 +08:00
Andrew McCreight 6976aecabf Bug 1089837 - Make IPC::Message use MOZ_COUNT_CTOR/DTOR. r=jld 2015-10-26 12:38:19 -07:00
Nicholas Nethercote 5b34a25af2 Bug 1216020 - Comment all ALLOW_COMPILER_WARNINGS lines. r=glandium.
DONTBUILD because it only changes comments.

This will hopefully prevent confusion like that in bug 1215903.

--HG--
extra : rebase_source : f0a601d77b5f42b4fbe090693234f934e3becc42
2015-10-19 18:05:20 -07:00
Andrew McCreight f1620f93e7 Bug 1215151 - Add XPCOM leak checking for base::Thread. r=jld 2015-10-16 09:02:00 -07:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew McCreight 4d45e43c54 Bug 1213320 - Detect IPC::Channel leaks with the XPCOM leak checker. r=jld 2015-10-14 11:03:47 -07:00
Nicholas Nethercote 399b5d9785 Bug 1205942 (part 5) - Disallow compiler warnings in ipc/chromium. r=jld.
--HG--
extra : rebase_source : 2cb59c74558ee2d05decef0b17c39a15338da782
2015-10-01 17:51:49 -07:00
Nicholas Nethercote e21cd5505a Bug 1205942 (part 4) - Remove GetWinVersion(). r=jld.
Like the last patch, the motivation is to remove a GetVersionEx() call which
triggers deprecation warnings.

Because Windows XP SP2 is the earliest Windows version we support, two of the
existing uses of GetWinVersion() could be removed, because they were checking
for XP or earlier. One other Vista check could be replaced with
mozilla::IsVistaOrLater().

--HG--
extra : rebase_source : 48f032fe92c3897a91866c7ff786a635479c0389
2015-10-01 07:11:30 -07:00
Nicholas Nethercote bf211c7df2 Bug 1205942 (part 3) - Remove unused OS version detection functions from ipc/chromium/. r=jld.
The motivation here is to remove the GetVersionEx() calls in the
Windows-specific code, because that function is deprecated and causes warnings.
The non-Windows versions come along for the ride.

--HG--
extra : rebase_source : ea50b4ce8271ea7281b901eac0542ab4a154adc6
2015-10-01 07:10:13 -07:00
Nicholas Nethercote 998f4575e5 Bug 1205942 (part 2) - Fix "always true" warning in child_thread.cc. r=jld.
The warning is "the address of NuwaMarkCurrentThread() will always evaluate to
'true'".

--HG--
extra : rebase_source : c66bd111a3a57b08095dbbbe043806cc2caf8c13
2015-09-23 18:21:19 -07:00
Nicholas Nethercote 91333243f4 Bug 1206558 (part 6) - Factor out common libevent moz.build stuff. r=mshal.
Two parts.

- Most of the common stuff goes into the new libeventcommon.mozbuild file.

- A little bit of common bsd/linux stuff factored out in
  ipc/chromium/moz.build.

--HG--
extra : rebase_source : a4bb56a444ad5b0d5d808e5d58dd7abe7dd81dbe
2015-09-22 16:24:51 -07:00
Nicholas Nethercote 89cb2574cf Bug 1206558 (part 5) - Give libevent its own moz.build file. r=mshal.
I originally tried putting it in ipc/chromium/src/third_party/libevent/, but
that directory already has a Makefile.in file, which caused problems, so I
moved it down one directory.

--HG--
extra : rebase_source : 63024d67c7b0f9215474cc85b475a4740ce51dc0
2015-09-22 16:24:51 -07:00
Nicholas Nethercote 555a6bb686 Bug 1206558 (part 4) - Factor out include handling in ipc/chromium/moz.build. r=mshal.
--HG--
extra : rebase_source : b8063fd9f38ec025e019bf29cba212a435b23a61
2015-09-22 16:24:51 -07:00
Nicholas Nethercote 4a88f838bd Bug 1206558 (part 3) - Move Android-specific code ipc/chromium/moz.build. r=mshal.
--HG--
extra : rebase_source : f80cb0fb31d1295fe0c36db884c5f38f4f0feb25
2015-09-22 16:24:51 -07:00
Nicholas Nethercote 63971ab5d4 Bug 1206558 (part 2) - Move Linux-specific code ipc/chromium/moz.build. r=mshal.
Just so the OS ordering at the top matches the OS ordering at the bottom.

--HG--
extra : rebase_source : c6c5a303ade7f740b3f2483b77c4276d0a782773
2015-09-22 16:24:51 -07:00
Nicholas Nethercote b290ddeb41 Bug 1206558 (part 1) - Combine handling of BSDs in ipc/chromium/moz.build. r=mshal.
Also wrap some overlong comment lines.

--HG--
extra : rebase_source : 5f7ff89dae32ab443f423884adb92341b4c97079
2015-09-22 16:24:51 -07:00
Nicholas Nethercote e2d96fab66 Bug 1181026 (part 3) - Fix libevent constants for 32-bit Linux/Mac/BSD builds. r=glandium.
The patch also adds the CHECK_EVENT_SIZEOF macro which checks that the
_EVENT_SIZEOF_* constants have the right values.

--HG--
extra : rebase_source : 36a41bb25adcef55814aa51a280cad91062d2147
2015-09-22 20:01:29 -07:00
Nicholas Nethercote 34ad9836d9 Bug 1181026 (part 2) - Clean up libevent patch handling. r=glandium.
Add a missing one to the docs, and move them from their current two locations
into a new patches/ directory.

--HG--
rename : ipc/chromium/src/third_party/libevent-avoid-empty-sighandler.patch => ipc/chromium/src/third_party/libevent/patches/avoid-empty-sighandler.patch
rename : ipc/chromium/src/third_party/libevent-dont-use-issetugid-on-android.patch => ipc/chromium/src/third_party/libevent/patches/dont-use-issetugid-on-android.patch
rename : ipc/chromium/src/third_party/libevent/mac-arc4random-buf.patch => ipc/chromium/src/third_party/libevent/patches/mac-arc4random-buf.patch
rename : ipc/chromium/src/third_party/libevent/openbsd-no-arc4random_addrandom.patch => ipc/chromium/src/third_party/libevent/patches/openbsd-no-arc4random_addrandom.patch
rename : ipc/chromium/src/third_party/libevent-use-non-deprecated-syscalls.patch => ipc/chromium/src/third_party/libevent/patches/use-non-deprecated-syscalls.patch
extra : rebase_source : 2b434e627b6fcbf699ab50c51356a986391dcd1c
2015-09-22 19:59:53 -07:00
Nicholas Nethercote 609bbdb87c Bug 1181026 (part 1) - Reformat libevent's README.mozilla file. r=glandium.
--HG--
extra : rebase_source : ef3e5c99e2e062444000027a25f369ed5e0f14fa
2015-09-22 19:59:27 -07:00
Nicholas Nethercote 51aed272e1 Bug 1205942 (part 1) - Fix overflows in time_posix.cc. r=jld.
We get the following warnings with clang.

> ipc/chromium/src/base/time_posix.cc:103:57: error: overflow in expression; result is 0 with type 'long' [-Werror,-Winteger-overflow]
> ipc/chromium/src/base/time_posix.cc:106:58: error: overflow in expression; result is -1000 with type 'long' [-Werror,-Winteger-overflow]

This is a genuine bug. The upstream code in Chromium has changed (commit
2a278516943eee02e0206506a4b907fc0b55f27b) and this patch changes our code to be
similar. I did tests and confirmed that instead of getting 0 or -1 for
|milliseconds|, we now get -2147483648000 or 2147483647999, which is much
better.

--HG--
extra : rebase_source : f01a4f03bc1576980010426328116d03eb71079b
2015-09-21 15:35:26 -07:00
Chris Peterson 230c67672b Bug 1203232 - Fix -Wshadow warnings in some ipc/chromium headers. r=njn 2015-09-13 02:06:14 -07:00
Ms2ger d65d89b426 Bug 1200131 - Avoid shadowing members in tuple.h; r=njn 2015-09-10 13:49:19 +02:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Mike Hommey 8d4c5b336d Bug 1189967 - Be slightly more explicit about some conversions to std::wstring. r=nfroyd 2015-08-23 22:20:19 +09:00
Botond Ballo a7263cd695 Bug 1056356 - Allow calling NewRunnableMethod() with a const pointer to the callee object. r=froydnj
--HG--
extra : rebase_source : 2cd101c22d0992acedccf50e7f5880a268cef199
2015-07-29 19:51:36 -04:00
Makoto Kato 50e851b877 Bug 830801 - Part 2. Remove NOMINMAX define from moz.build. r=mshal 2015-08-03 10:07:09 +09:00
Ehsan Akhgari 56131e371e Bug 1188211 - Fix more constructors in IPC; r=billm 2015-07-28 08:53:31 -04:00
Hamzata Diallo 3f61ec7708 Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow
--HG--
extra : rebase_source : 77ebb8e1195c0e2570dbf5dbee54edfa5ecdab28
2015-07-02 15:19:35 -07:00
Brad Lassey afc6a1e13f bug 1161166 - Use mach shared memory for shared memory on OSX r=billm
--HG--
rename : ipc/glue/SharedMemoryBasic_android.cpp => ipc/glue/SharedMemoryBasic_mach.cpp
rename : ipc/glue/SharedMemoryBasic_android.h => ipc/glue/SharedMemoryBasic_mach.h
2015-06-17 00:38:38 -04:00
Brad Lassey 456bd3e0d5 bug 1161166 - Move some implementation out of ipc headres to not include headres for EndianU32_* r=billm 2015-06-09 09:56:10 -04:00
Shelly Lin 4eff0a1842 Bug 1113562 - Expected delay time of tasks should not be the latency of those kind. r=sinker
--HG--
extra : rebase_source : b5e012fb6570e87270a0924fbe395dc56e6242ec
2015-06-16 10:57:19 +08:00
Andrew McCreight 2a29c287a6 Bug 1152079 - Remove Purify support files. r=froydnj 2015-06-06 14:37:59 -07:00
Eric Rahm 518166f0c8 Bug 1165515 - Part 14: Undef PR_LOG macros when using mozilla/Logging.h. r=froydnj
Make it harder for users to accidentally reintroduce usage of the PR_LOG macros
when using 'mozilla/Logging.h'. This can still be worked around by directly
including 'prlog.h' (and not 'mozilla/Logging.h') if absolutely necessary.
2015-06-03 15:26:07 -07:00
Carsten "Tomcat" Book 5471309381 Backed out 14 changesets (bug 1165515) for linux x64 e10s m2 test failures
Backed out changeset d68dcf2ef372 (bug 1165515)
Backed out changeset 7c3b45a47811 (bug 1165515)
Backed out changeset b668b617bef2 (bug 1165515)
Backed out changeset d0916e1283a2 (bug 1165515)
Backed out changeset ac4dc7489942 (bug 1165515)
Backed out changeset e9632ce8bc65 (bug 1165515)
Backed out changeset c16d215cc7e4 (bug 1165515)
Backed out changeset e4d474f3c51a (bug 1165515)
Backed out changeset d87680bf9f7c (bug 1165515)
Backed out changeset b3c0a45ba99e (bug 1165515)
Backed out changeset 9370fa197674 (bug 1165515)
Backed out changeset 50970d668ca1 (bug 1165515)
Backed out changeset ffa4eb6d24b9 (bug 1165515)
Backed out changeset 5fcf1203cc1d (bug 1165515)

--HG--
extra : rebase_source : 6fb850d063cbabe738f97f0380302153e3eae97a
2015-06-02 13:05:56 +02:00