Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
L. David Baron b0d0022c36 Bug 331743 patch 3: Improve trace-malloc memory dumps and their handling on 64-bit. r=khuey
There are three categories of improvements:

 (1) using size_t* rather than unsigned long* (and "%zX" rather than
     "%lX"), to better support platforms where sizeof(long) !=
     sizeof(void*), such as Win64 (untested, though).  This is a
     non-issue for 64-bit Linux (where I tested) and Mac.

 (2) Using the correct amount of 0-padding when printing addresses to
     show how much memory space is being printed.  In other words, using
     "%016zX" on 64-bit platforms instead of "%08zX".  This change is
     cosmetic-only, though it makes the logs much more understandable.

 (3) [in leaksoup.cpp only] Fixing an occurrence of assuming that
     sizeof(int) == sizeof(void*).  This occurrence led to printing only
     the lower half of each word in the output, after doing a correct
     analysis of the memory graph.

This patch is patching three files:

 (A) nsTraceMalloc.cpp, which is the in-process Gecko trace-malloc code
     that generates the memory dumps.

 (B) adreader.cpp, which is shared utility code for reading such a
     memory dump (currently used only by leaksoup.cpp)

 (C) leaksoup.cpp, which reads in such a memory dump, performs a
     strongly connected components analysis of the memory graph, and
     writes it back out, HTML-ized, with the roots listed at the top.

A fourth file appears to need no modification since it only looks at the
stack part of the dump and not the contents of the memory:

 (D) diffbloatdump.pl, which diffs two bloat dumps and produces a stack
     tree showing the change in allocations between them
2014-02-26 13:36:36 -08:00
accessible Bug 976350 patch 2: Rename nsTraceRefcntImpl to nsTraceRefcnt. r=bsmedberg 2014-02-26 13:36:36 -08:00
addon-sdk Bug 976105 - Remove test-suite dependency on unprivileged calls to constructor-as-function. r=bz 2014-02-24 14:40:21 -08:00
b2g merge b2g-inbound to mozilla-central 2014-02-26 12:48:53 +01:00
browser Bug 976631 Fix fallout from bug 956657 and port code simplification r=Gijs 2014-02-26 20:58:03 +00:00
build Bug 974378 - Make webrtc.org OpenSL ES output code optional. Increase input buffers. r=jesup 2014-02-26 19:55:07 +01:00
caps Bug 976348 - Change DescribeScriptedCaller to not return a JSScript (r=bholley) 2014-02-25 09:43:14 -06:00
chrome Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg 2014-02-10 17:57:01 -05:00
config Bug 976853 - Exclude dependency file from dependency output for expandlibs_exec.py; r=gps 2014-02-26 13:55:36 +09:00
content Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
db/sqlite3 Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
docshell Bug 935778 - Part 0.2: Spray some MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-20 21:33:49 -05:00
dom Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
editor Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
embedding Bug 464222 - Allow URI loads with a base URI argument. r=bz 2014-02-20 08:43:53 -05:00
extensions Bug 970199 - Switch mouse event button type from ushort to short according to spec change. r=smaug 2014-02-20 10:38:13 -08:00
gfx Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
hal Bug 935778 - Part 0.4: Spray even more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-21 09:11:33 -05:00
image Bug 975900 - Convert imgUtils to Moz2D (from gfxASurface to SourceSurface). r=mattwoodrow 2014-02-25 00:51:45 +00:00
intl Bug 974175 - Stop using grouping separator characters when displaying <input type=number>'s value. r=ehsan 2014-02-20 12:31:05 +00:00
ipc Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
js Bug 976350 patch 2: Rename nsTraceRefcntImpl to nsTraceRefcnt. r=bsmedberg 2014-02-26 13:36:36 -08:00
layout Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
media Bug 974378 - Make webrtc.org OpenSL ES output code optional. Increase input buffers. r=jesup 2014-02-26 19:55:07 +01:00
memory Bug 935778 - Part 0.4: Spray even more MOZ_DECLARE_REFCOUNTED_TYPENAME across the tree 2014-02-21 09:11:33 -05:00
mfbt Bug 962488 - Update double-conversion for proper AArch64 support. r=froydnj 2014-02-26 13:43:16 -05:00
mobile Bug 959768 - Add non-unified mozconfigs for Android builds; r=catlee 2014-02-26 15:06:41 -05:00
modules Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
mozglue Backed out 5 changesets (bug 951827) for causing bug 975820. 2014-02-24 14:52:14 -05:00
netwerk Bug 976350 patch 2: Rename nsTraceRefcntImpl to nsTraceRefcnt. r=bsmedberg 2014-02-26 13:36:36 -08:00
nsprpub Bug 844784: Update NSPR to NSPR_4_10_4_BETA3. Also includes the fix for 2014-02-08 08:19:09 -08:00
other-licenses Bug 910754 - Update include location for skia-npapi to look in skia/trunk r=snorp 2014-02-13 12:19:07 -05:00
parser Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
probes Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
profile Bug 974217 - Remove the non-standalone part of dirserviceprovider; r=glandium 2014-02-19 13:14:11 -05:00
python Merge m-c to fx-team 2014-02-25 20:38:33 -08:00
rdf Bug 973142 - Get rid of the MOZILLA_INTERNAL_API makefile variable; r=glandium 2014-02-18 01:56:51 -05:00
security Bug 921886: Add certificate policiy support to insanity::pkix, r=keeler, r=cviecco 2014-02-24 12:37:45 -08:00
services Bug 932759 (part 2) - Have form sync work correctly if FormHistory is disabled. r=rnewman 2014-02-26 17:12:16 +11:00
startupcache Bug 957256: Modify StartupCache callbacks to use context parameter to obtain object pointer; r=bsmedberg 2014-01-10 17:16:25 -07:00
storage Bug 973405 - Move some misc LOCAL_INCLUDES to moz.build; r=glandium 2014-02-18 08:49:12 -05:00
testing Bug 976831: Remove unused getStatus method from Marionette; r=mdas 2014-02-26 17:06:24 +00:00
toolkit Bug 976885 - Port RCFLAGS to moz.build; r=glandium 2014-02-26 09:12:49 -05:00
tools Bug 331743 patch 3: Improve trace-malloc memory dumps and their handling on 64-bit. r=khuey 2014-02-26 13:36:36 -08:00
uriloader Merge m-c to inbound. 2014-02-25 15:28:35 -05:00
view Back out b157f5d0c235 (bug 974197) for b2g reftest-4 and reftest-6 failures 2014-02-24 21:06:18 -08:00
webapprt Bug 976885 - Port RCFLAGS to moz.build; r=glandium 2014-02-26 09:12:49 -05:00
widget Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg 2014-02-26 13:36:35 -08:00
xpcom Bug 976350 patch 2: Rename nsTraceRefcntImpl to nsTraceRefcnt. r=bsmedberg 2014-02-26 13:36:36 -08:00
xpfe Bug 974258 Manually size autocomplete history popup to the autocomplete's width r=Ratty 2014-02-23 18:26:52 +00:00
xulrunner Bug 976885 - Port RCFLAGS to moz.build; r=glandium 2014-02-26 09:12:49 -05:00
.clang-format Bug 965120 - Use .clang-format to set tree default format; r=gps 2014-01-30 14:27:44 +13:00
.clang-format-ignore Bug 967361 - Fix .clang-format-ignore on Windows. r=gps 2014-02-04 17:25:04 +13:00
.gdbinit Bug 848796 part 1. Rename nsXULDocument to mozilla::dom::XULDocument. r=ms2ger 2013-03-26 11:31:53 -04:00
.gitignore Bug 861197 - chrome.manifest files created by the devtools loader should be ignored; r=dcamp; DONTBUILD because NPOTB 2013-04-30 10:22:25 +03:00
.hgignore Bug 894094 - Add .idea folder (created by JetBrains IDEs) to .hgignore. r=BenWa 2013-07-16 10:32:55 -04:00
.hgtags Tagging for mozilla-central version bumps DONTBUILD NO BUG (retroactive missing tag from Dec 9th, 2013 merge day) 2014-02-12 16:58:47 -08:00
.lldbinit Bug 960300 - Put a .lldbinit in the objdir and in dist/bin/, which load the .lldbinit in topsrcdir. r=glandium 2014-01-21 14:47:05 +11:00
.reviewboardrc Bug 943747 - Add a .reviewboardrc file; r=mconley 2013-11-27 14:13:18 +08:00
AUTHORS Bug 763623 - Add AUTHORS file. 2012-09-17 10:47:50 +01:00
Android.mk Bug 794297: Block the android build system from looking in mozilla-central. r=mwu 2012-09-25 17:04:01 -07:00
CLOBBER Bug 939672 - Patch 3: CLOBBER change for moving file location 2014-02-25 16:12:57 +08:00
LEGAL
LICENSE
Makefile.in Bug 969164 - Replace most BUILDING_JS uses with JS_STANDALONE. r=gps 2014-02-11 10:37:47 +09:00
README.txt No bug: the OVERRIDE HOOK is stupid. 2014-01-21 08:23:43 -08:00
aclocal.m4 Bug 967556 - Divert AC_CHECK_FUNC so that the #includes it uses can't interfere with the function it tests. r=gps 2014-02-14 08:15:02 +09:00
client.mk Bug 950298 - Make the js build system use top-level as its root objdir. r=gps 2014-01-14 07:38:40 +09:00
client.py Bug 937984: Allow client.py to pull NSPR and NSS from a user-specified repo, r=kaie 2013-11-17 13:48:30 -08:00
configure.in merge b2g-inbound to mozilla-central 2014-02-26 12:48:53 +01:00
mach Backed out changeset faafb9526e32 (bug 957721) for breaking mach on Windows. 2014-01-16 08:21:07 -05:00
moz.build Bug 961598 - Part 2: Disable wrapped code from ICS. r=mwu, mh 2014-02-25 09:46:48 +08:00
mozilla-config.h.in Bug 947083 - Kill elf-dynstr-gc. r=ted 2013-12-07 07:47:27 +09:00

README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    http://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on http://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
            - or -
    http://nightly.mozilla.org/