Commit Graph

1776 Commits

Author SHA1 Message Date
Chris Peterson
696e4b3f5d Bug 1236393 - Annotate intentional switch fallthrough to suppress -Wimplicit-fallthrough warning in tools/power/rapl.cpp. r=njn
tools/power/rapl.cpp:331:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-23 22:41:07 -08:00
Nicholas Nethercote
18aae81f22 Bug 1237151 (part 4) - Turn on -Wignored-qualifiers for C++ code. r=mshal.
It's already on for C code.
2016-01-05 14:31:02 -08:00
Nicholas Nethercote
84b71404df Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Andrew Halberstadt
35709cc16e Bug 1234927 - Display fxheads in |hg wip| alias, r=gps 2015-12-23 15:38:08 -05:00
Chris Peterson
e4145f4cf1 Bug 1235502 - Fix -Wunreachable-code warning in tools/profiler/. r=BenWa
tools/profiler/core/shared-libraries-linux.cc:115:15: warning: code will never be executed [-Wunreachable-code]
2015-12-28 19:12:21 -07:00
Chris Manchester
c7e21a76a0 Bug 1216681 - Add a fileid utility to extract the breakpad GUID from object files for identification in fix_stack_using_bpsyms. r=ted
fix_stack_using_bpsyms.py locates a .sym file based on file name only, not uuid or full path,
which causes a failure if a duplicate leaf file name is introduced. This patch introduces a
small utility program on mac and linux to extract a breakpad guid from a shared library or
executable to identify the correct symbol file when this ambiguity occurs. A subsequent commit
implements this for windows.
2015-10-21 16:37:42 -07:00
Mike Conley
3fb83ff918 Bug 1221846 - Properly close the tasktracer property in the GeckoSampler JSON blob. r=BenWa 2015-12-15 19:12:17 -05:00
Mike Conley
ebaada53a6 Bug 1221846 - Get Task Tracer building on desktop r=cyu. 2015-12-02 20:55:38 -05:00
Wes Kocher
8deafbbaba Backed out changeset ef3be88cb79c (bug 1216681) for breaking asan m(bc2) 2015-12-31 16:11:58 -08:00
Gregory Szorc
1d69ec9e52 Bug 1235921 - Update modern Mercurial version to 3.5.2; r=me
3.5.2 is what is listed in `mach mercurial-setup`. These should match.
Add a comment to each file saying to change both.
2015-12-31 16:01:48 -08:00
Chris Manchester
a590b5a075 Bug 1216681 - Add a fileid utility to extract the breakpad GUID from object files for identification in fix_stack_using_bpsyms. r=ted
fix_stack_using_bpsyms.py locates a .sym file based on file name only, not uuid or full path,
which causes a failure if a duplicate leaf file name is introduced. This patch introduces a
small utility program on mac and linux to extract a breakpad guid from a shared library or
executable to identify the correct symbol file when this ambiguity occurs. A subsequent commit
implements this for windows.
2015-10-21 16:37:42 -07:00
Mike Hommey
a05c4207ed Bug 1235676 - Replace $(abspath $(DIST)) with $(ABS_DIST). r=mshal 2015-12-31 08:10:02 +09:00
Mike Hommey
3f231e7e9d Bug 1235676 - Replace _ABS_DIST with ABS_DIST. r=mshal 2015-12-31 08:10:02 +09:00
Benoit Girard
7d48a6d451 Bug 1233835 - Fix TaskTracer double init assert. r=mconley 2015-12-18 16:12:47 -05:00
Dave Townsend
f25bb09b99 Bug 1230300: Add a hg extension that rejects changesets that fail to pass eslint. r=gps
This grabs the list of changed and added files that match the set we expect to
be able to lint and runs them through eslint displaying simple messages on error.
2015-12-11 09:11:49 -05:00
Gregory Szorc
7cace466fc Bug 1225599 - Pull Mercurial repos with common 3rd party extensions disabled; r=dminor
Running old extensions with newer versions of Mercurial may crash `hg`
due to the old extension accessing something or doing something that has
been changed in the new release.

To minimize the risk of this happening, we disable common 3rd party
extensions when cloning or pulling as part of `mach mercurial-setup`. We
don't want to disable everything because some extensions (like
remotenames) provide features the user may want enabled as part of the
clone/update. This leaves the door open for more failures. Hopefully
this approach is sufficient. We can always revisit later.
2015-12-15 10:47:33 -08:00
Gregory Szorc
7b76f4af82 Bug 1232747 - Check for ssl.SSLContext existence; r=dminor
ssl.SSLContext was added in 2.7.9. I thought it was present in earlier
versions and the extra cert foo was added in 2.7.9. Derp.
2015-12-15 11:26:20 -08:00
Alessio Placitelli
b2937e2a0b Bug 1231965 - Change references to ./mach build-docs to ./mach doc. r=gps 2015-12-11 17:33:11 +01:00
Gregory Szorc
521144bd87 Bug 1231989 - Prompt to install hgwatchman extension; r=ahal
This can speed up performance significantly.

Only support OS X for now because on Linux we have to adjust inode
limits to support mozilla-central and I don't feel like scope bloating.
2015-12-11 13:02:53 -05:00
Gregory Szorc
c2c085241c Bug 1231192 - Only install host fingerprints if not running secure Python+hg; r=smacleod
See inline comment.
2015-12-07 13:15:24 -08:00
Gregory Szorc
f207a1a125 Bug 1231192 - Offer to install hg wip; r=smacleod 2015-12-07 13:22:49 -08:00
Gregory Szorc
a5b2f8ee43 Bug 1231192 - Support clonebundles feature; r=smacleod
bundleclone is the Mozilla-specific precursor to the "clonebundles"
feature in Mercurial 3.6. Change the wizard to recognize when
clonebundles is available and to favor it. Activating clonebundles will
also disable bundleclone, as bundleclone is redundant with clonebundles.
(If both are enabled, bundleclone detects this and gets out of the way.)
2015-12-07 13:03:17 -08:00
Gregory Szorc
c240e70a32 Bug 1231192 - Bump some minimum Mercurial version; r=smacleod
We only support the last 4 releases of Mercurial. 3.6 is out, which
means we only support down to 3.3.
2015-12-07 12:23:56 -08:00
Gregory Szorc
bbed915540 Bug 1231192 - Mark Mercurial 3.5.2 as oldest non-legacy version; r=smacleod
Main reason for recommending 3.5 is bundle2. The protocol is faster and
we can do things like put extra data in the server exchange. It also
enables generaldelta to be exchanged without pain.

And of course there are tons of performance improvements and bug fixes.
2015-12-07 12:20:50 -08:00
Matt Howell
b79e2ddec2 Bug 1079858, Deal with deprecation of SHA1 (SHA-1) Authenticode signatures for Windows signing, part 2 (swap cert), r=catlee, a=lizzard 2015-12-08 16:16:55 -05:00
Wes Kocher
b6c86514bf Backed out changeset 0ea0832d052d (bug 1079858) for causing bug 1230631 a=backout 2015-12-04 14:58:55 -08:00
Mike Conley
b1c5d7758c Bug 1193838 - Allow ProfileGatherer to gather profiles from exiting processes. r=BenWa 2015-08-18 14:57:35 -04:00
Mike Conley
374f39cebf Bug 1193838 - Expose ProfileGatherer as an nsISupports through nsIProfiler for process parent actors. r=BenWa
We need to let ContentParent and PluginModuleParent get a reference to the ProfileGatherer
during the window of time that we're profiling so that if they start to die (the actor is
starting to go away), they have a gatherer they can send their last profile data to.
2015-08-12 14:20:26 -04:00
Mike Conley
a4a9e691fa Bug 1193838 - Make ProfileGatherer exist during the lifetime of a GeckoSampler. r=BenWa 2015-12-01 13:01:27 -05:00
Alex Jordan
481b468630 Bug 1228580 - ./mach mercurial-setup should use ~ to set up extension paths, not my literal home directory. r=gps 2015-11-27 14:51:50 -08:00
Ben Hearsum
bd2dd20e30 Bug 1079858: Enable SHA2 signing for windows. r=catlee rs=rstrong 2015-12-02 14:12:37 -05:00
Bogdan Postelnicu
a7f74a6c82 Bug 1228339 - Initialize members in class. r=jseward 2015-12-02 02:50:00 +01:00
Nigel Babu
986ff39a5c Backed out changeset 0d6721e243d3 (bug 1228339) for build bustage
CLOSED TREE
2015-12-02 14:09:40 +05:30
Bogdan Postelnicu
f0d4fcede8 Bug 1228339 - initialize memebers in class. r=jseward 2015-11-26 07:03:00 +01:00
Mike Hommey
e6640e1ccd Bug 1228444 - Rename DIST_FILES to FINAL_TARGET_PP_FILES. r=gps
This makes it clearer that really it's the same thing as FINAL_TARGET,
with preprocessing.
We still keep DIST_FILES in backend.mk because it's shorter and doesn't
really matter.
2015-12-01 08:25:22 +09:00
Mike Hommey
5f18a2a5fe Bug 1228444 - Don't silence "no preprocessor directives found" warnings for DIST_FILES. r=gps
and move files without preprocessor directives to FINAL_TARGET_FILES.
2015-12-01 08:25:22 +09:00
Mike Conley
cf1853d908 Bug 1103094 - Start profiling subprocesses if the parent process is already profiling. r=BenWa 2015-08-11 14:26:27 -04:00
Mike Conley
5d24158cf6 Bug 1103094 - Add accessor for nsIProfilerStartParams to nsIProfiler. r=BenWa 2015-08-11 14:26:09 -04:00
Mike Hommey
21ea6a1c90 Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
Benoit Girard
d70c905083 Bug 989499 - Part 2: Use FramePointerStackwalk on windows. r=rjmuizel 2014-03-28 16:31:15 -04:00
Jeff Muizelaar
789be3e18f Bug 989499 - Part 1: Add a way to get the stack top. r=BenWa 2014-03-28 16:18:24 -04:00
Andreas Tolfsen
75caea5517 Bug 1223459: Serve documentation over HTTP in mach doc
Introduces new flag --http [ADDRESS] that spins up an HTTPD serving
`outdir'.  By default it will spin up a server on 0.0.0.0:6666.

r=ahal
2015-11-10 20:37:38 +00:00
Chris Peterson
5f6ec4fff6 Bug 1223262 - Fix -Wunreachable-code warning in tools/profiler. r=BenWa
tools/profiler/core/platform-linux.cc:363:11: warning: code will never be executed [-Wunreachable-code]
2015-11-11 21:18:20 -08:00
Chris Peterson
ba0b7175d3 Bug 1222887 - Suppress -Wunreachable-code warning in tools/power. r=njn
tools/power/rapl.cpp:844:5 [-Wunreachable-code] code will never be executed

clang reports a -Wunreachable-code warning for sigemptyset() because Darwin's sigemptyset() is a macro that always returns 0. Thus `if (sigemptyset(&sa.sa_mask) < 0)` is always false and `Abort("sigemptyset() failed")` is never called. Linux's sigemptyset() can return 0 or -1. The extra parens around (0) suppress the clang warning.
2015-11-09 01:03:54 -08:00
Andrew Halberstadt
466931e386 Bug 1220789 - Generalize |mach build-doc| for any arbitrary sphinx projects; rename to |mach doc|, r=gps
Now, running |mach doc <path/to/project>| will generate the sphinx based docs of the project and open them
in the default browser. Mulitple doc paths can be supplied at a time. E.g:
./mach doc testing/mozbase
2015-11-03 15:39:50 -05:00
Gregory Szorc
1279637f3d Bug 1213959 - Set SHELL in Read the Docs environment; r=ted
The Read the Docs environment doesn't have SHELL defined. This causes
mach.mixin.process's import to fail, as it insists on finding an active
shell. While we could fix mach.mixin.process to not raise if the
variable is not set, this is a bit more work and has wider build system
and mach implications. So we employ a quick hack instead.

DONTBUILD (NPOTB)
2015-11-04 08:26:26 -08:00
Birunthan Mohanathas
94998cf5fe Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Wes Kocher
4e27a62f82 Bug 1218903 - Update bmo fingerprint. r=fubar, a=Tomcat 2015-10-27 10:50:45 -07:00
Kan-Ru Chen
d021c2ffe1 Bug 1216970 - Make the copying more obvious in ProfilerImpl::GetStacktrace. r=froydnj 2015-10-23 11:43:00 +08:00
Nathan Froyd
e4e2da55c9 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
2015-10-18 01:24:48 -04:00