Commit Graph
188 Commits
Author SHA1 Message Date
Birunthan Mohanathas 9c531b5b34 Bug 869836 - Part 6: Use EqualsLiteral instead of Equals where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Birunthan Mohanathas e44da12c54 Bug 995730 - Fix style violations in xpcom/base/. r=froydnj,continuation 2014-05-13 20:41:38 +03:00
Birunthan Mohanathas 34a78370e0 Bug 995730 - Change xpcom/base/ to use 2 space indentation
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:39 +03:00
Birunthan Mohanathas eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Eric Rahm 18c02847fa Bug 1000461 - Enable triggering memory report via fifo device on OS X. r=froydnj 2014-04-24 17:35:59 -07:00
Jed Davis fce3339319 Bug 991791 - Fix some timing-dependent edge cases in nsMemoryReporterManager child handling. r=njn
The patch for bug 946407 changed the state space of
nsMemoryReporterManager in a subtle way: if we're using
MinimizeMemoryUsage with our report, then it's possible for all of
the child processes to finish (or for the timeout to expire) before
the parent has started reporting on itself.  This could cause us to
dereference a null pointer to the state struct in StartGettingReports().

To fix this, we keep track of whether the parent has actually done its
report, and defer finishing the report until then.
2014-04-07 13:33:00 +02:00
Ben Kelly f4e380759d Bug 991412: Provide static convenience method to retrieve RSS. r=njn 2014-04-07 10:46:20 -04:00
Ehsan Akhgari 01376e5cc1 Bug 982072 - Don't leak the argument passed to RegisterStrongMemoryReporter if we fail to get the service; r=froydnj 2014-03-11 14:15:27 -04:00
Jed Davis 867bd0590a Bug 946407 - Reimplement DumpMemoryInfoToTempDir in terms of GetReports. r=njn
This winds up exposing things in the nsIMemoryReporterManager interface
that arguably don't belong at that level of abstraction -- "minimize
memory usage first" and DMD -- in order to take advantage of the
infrastructure that GetReports already has for managing the child
processes.
2014-03-04 18:27:13 -08:00
Gabriele Svelto 92d6d17be0 Bug 975434 - Remove the ability to cancel memory minimizations. r=njn 2014-02-25 16:37:30 +01:00
Nicholas Nethercote 6b5b1691a4 Bug 956199 - Fix style of xpcom/base/nsMemoryReporterManager.{h,cpp}. r=bsmedberg. 2014-01-02 19:19:32 -08:00
Mike Hommey cd9cb04b01 Bug 969800 - Fix nsMemoryReporterManager::GetVsize for !HAVE_VSIZE_AND_RESIDENT_REPORTERS and add GNU/kFreeBSD support to nsMemoryReporterManager. r=njn 2014-02-11 10:43:41 +09:00
Neil Rashbrook a0dbae5c62 Bug 969324 Remove unnecessary ReporterEnumerator r=njn 2014-02-10 19:26:08 +00:00
Thomas Zimmermann cb3b506fe2 Bug 968849: Fix GCC warnings about uninitialized variables, r=froydnj 2014-02-06 17:57:38 +01:00
Birunthan Mohanathas 49ae16d483 Bug 784739 - Switch from NULL to nullptr in remaining directories; r=ehsan 2014-01-06 10:06:04 -05:00
Ehsan Akhgari 68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ehsan Akhgari 1fff0c7efd Bug 758992 follow-up - Mark DoNothingCallback final to avoid compiler warnings; blanket-r=bzbarsky 2014-01-03 09:54:32 -05:00
Nicholas Nethercote 821ff40297 Bug 955942 (part 3) - Merge the heap reporters. r=mccr8. 2014-01-02 15:19:08 -08:00
Nicholas Nethercote 49912eb578 Bug 955942 (part 2) - Remove MemoryUniReporter. r=mccr8. 2013-12-07 22:09:10 -08:00
Nicholas Nethercote 3f5924c2e0 Bug 955942 (part 1) - Remove unnecessary nsIMemoryReporter qualifiers from UNITS_* and KIND_* constants. r=mccr8. 2013-12-11 11:59:39 -08:00
Nils Maier b83dbe6bf0 Bug 950391 - Add nsIMemoryReporterManager.unregisterStrongReporter. r=njn
Also do not allow to register non-native components as weak reporters.
2013-12-18 13:00:03 -05:00
Trevor Saunders b4ae5fdd96 bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
Jan Beich 4da3f2b96b Bug 948833 - Explicitly include <algorithm> for std::max on FreeBSD. r=njn 2013-12-11 10:35:33 -05:00
Andrew McCreight a52ccbd404 Bug 948686 - Remove unused variable declaration. r=njn 2013-12-11 10:35:13 -05:00
Nicholas Nethercote d59d2c5af8 Bug 947802 (part 2) - Replace enumerateReporters() with getReportsForThisProcess(). r=mccr8. 2013-12-01 16:29:37 -08:00
Nicholas Nethercote fb860b68d3 Bug 947798 (part 2) - Remove MemoryMultiReporter, because it's no longer helpful. r=mccr8. 2013-12-07 21:39:47 -08:00
Jan Beich d74f9961c4 Bug 946560 - Dump about:memory upon receiving a signal on FreeBSD as well. r=njn 2013-12-05 09:38:46 -05:00
Nicholas Nethercote fcbaba2b6a Bug 943660 (part 2) - Remove remnants of Remove nsIMemoryReporter::name. 2013-12-03 20:01:24 -08:00
Jan Beich c7e93a93e6 Bug 945046 - Implement private and vsize-max-contiguous reporters on FreeBSD. r=njn, r=glandium 2013-12-02 12:51:27 -05:00
Jan Beich ff1a11f934 Bug 945046 - Move private, vsize-max-contiguous class implementation under their own ifdef. r=njn 2013-12-02 12:51:26 -05:00
Nicholas Nethercote 0d8c64efcc Bug 936964 (part 7, attempt 2) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz.
* * *
Bug 936964 (part 7b) - Fix a use-after-free found by ASan.
2013-11-07 16:35:30 +11:00
Ehsan Akhgari 65aaebab72 Backed out 9 changesets (bug 943660, bug 936964) because of ASAN use-after-free crashes on browser-chrome and mochitest-other
Backed out changeset 85486c4aa3d8 (bug 936964)
Backed out changeset 25312eb71998 (bug 936964)
Backed out changeset 6dbb8333960c (bug 936964)
Backed out changeset da6465ad476f (bug 936964)
Backed out changeset a87ffc992f38 (bug 936964)
Backed out changeset 4ae3a61182db (bug 936964)
Backed out changeset 34e9c3137804 (bug 936964)
Backed out changeset fd1459e71585 (bug 936964)
Backed out changeset 3e8a701d8bdc (bug 943660)

Landed on a CLOSED TREE
2013-11-27 20:05:00 -05:00
Nicholas Nethercote c363b9d028 Bug 936964 (part 7) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz. 2013-11-07 16:35:30 +11:00
Benjamin Smedberg 29d63f056d Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric 2013-11-19 16:27:37 -05:00
Phil Ringnalda 0a7e16b0d9 Backed out 4 changesets (bug 672843) for xpcshell bustage
Backed out changeset bbb7760083ae (bug 672843)
Backed out changeset eaf2fd75d7fc (bug 672843)
Backed out changeset eb08cc206b8d (bug 672843)
Backed out changeset 6a0e4afd52ab (bug 672843)
2013-11-19 14:38:29 -08:00
Nicholas Nethercote 3932b0b960 Bug 939385 (part 4, attempt 2) - Rename some distinguished amount functions. r=froydnj. 2013-11-18 22:37:39 -08:00
Nicholas Nethercote ee8f1d5669 Bug 939385 (part 3, attempt 2) - Expose vsizeMaxContiguous to about:memory. r=froydnj. 2013-11-18 22:37:38 -08:00
Nicholas Nethercote 1295592348 Bug 939385 (part 1, attempt 2) - Rename largestContiguousVMBlock as vsizeMaxContiguous. r=froydnj. 2013-11-18 22:24:12 -08:00
Benjamin Smedberg 55941b30fe Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric 2013-11-19 16:27:37 -05:00
Carsten "Tomcat" Book 4e0f7aa242 Backed out changeset a06dd3421421 (bug 939385) for perma failures/orange in XPCShell Tests on Linux and OS X on a CLOSED TREE 2013-11-19 11:48:01 +01:00
Carsten "Tomcat" Book 084f201a3f Backed out changeset 65048ac4ae6f (bug 939385) for perma failures/orange in XPCShell Tests on Linux and OS X on a CLOSED TREE 2013-11-19 11:47:41 +01:00
Carsten "Tomcat" Book 087d8d725c Backed out changeset 027fced104dc (bug 939385) for perma failures/orange in XPCShell Tests on Linux and OS X on a CLOSED TREE 2013-11-19 11:47:30 +01:00
Nicholas Nethercote 41cf337337 Bug 939385 (part 4) - Rename some distinguished amount functions. r=froydnj. 2013-11-18 22:37:39 -08:00
Nicholas Nethercote 638cf03ec1 Bug 939385 (part 3) - Expose vsizeMaxContiguous to about:memory. r=froydnj. 2013-11-18 22:37:38 -08:00
Nicholas Nethercote beb545fac9 Bug 939385 (part 1) - Rename largestContiguousVMBlock as vsizeMaxContiguous. r=froydnj. 2013-11-18 22:24:12 -08:00
Nathan Froyd 95b8833ae2 Bug 939137 - part 1 - add largestContiguousVMBlock attribute to nsIMemoryReporterManager; r=bsmedberg 2013-11-15 13:04:43 -05:00
Markus Stange 2aeb8acb76 Bug 936074 - Fix nsIHandleReportCallback typo. r=njn.
Affects DMD-only builds so DONTBUILD.
2013-11-08 14:48:31 +11:00
Nicholas Nethercote 5c26d355e0 Bug 934321 - Add MemoryMultiReporter, a helper class that reduces some boilerplate, and convert all existing multi-reporters to use it. r=wchen. 2013-11-06 14:58:20 +11:00
Nicholas Nethercote c10613ba57 Bug 929797 - Implement proper memory reporting for child processes. r=khuey. 2013-10-22 22:26:24 -07:00
Nicholas Nethercote 09ae277947 Bug 930851 (part 3) - Use |data| instead of |closure| for some callback environment arguments. r=mccr8. 2013-10-24 21:39:16 -07:00