Gabriele Svelto
3dbabca27a
Bug 805855 - Free dirty pages in response to all memory-pressure messages. r=jlebar
2012-11-12 17:41:23 +01:00
Nathan Froyd
8d66057983
Bug 809931 - make Static{Auto,Ref}Ptr have trivial constructors and destructors; r=jlebar
2012-11-09 16:48:42 -05:00
Trevor Saunders
cfc261384c
bug 808229 - remove unused NS_ENSURE_ macro and associated success error code r=surkov
2012-11-02 18:36:58 -04:00
Dave Hylands
4dc2dc2e6c
Bug 783630 - Make OOP console logs only show up once in logcat. r=bzbarsky
2012-11-09 09:52:09 -08:00
Gabriele Svelto
bea65ae7da
Bug 808756 - Introduce a memory-pressure event that is not forwarded by the main process to its children. r=jlebar
2012-11-08 02:07:57 +01:00
Dave Hylands
6019a8993f
Bug 794599 - Add a preference to disable logging. r=bzbarsky
2012-11-06 22:34:33 -08:00
Dave Hylands
8896b0866f
Bug 794599 - Backout 847cedab81ae due to debug orange
2012-11-07 01:03:52 -08:00
Dave Hylands
1b7759a62f
Bug 794599 - Add a preference to disable logging. r=bzbarsky
2012-11-06 22:34:33 -08:00
Nicholas Nethercote
8bd3070a4a
Bug 808467 - Rewrite the cycle collector's memory reporter. r=mccr8.
...
--HG--
extra : rebase_source : 9944d59772654a1df8db3227f1a8b18ae3dcfeda
2012-11-06 17:38:29 -08:00
Kartikaya Gupta
15da69499f
Bug 808772 - Adjust Android low-memory platform threshold to 512 MiB. r=blassey
2012-11-06 10:05:18 -05:00
Neil Rashbrook
94fc0147cc
Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg r=msucan
2012-11-03 10:59:29 +00:00
Ryan VanderMeulen
f7e7922b7f
Backout 06b998c1100d (bug 664695) due to mochitest-other orange.
2012-11-02 17:12:22 -04:00
Neil Rashbrook
e3101f4764
Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg
2012-11-02 20:07:50 +00:00
Justin Lebar
75dfddada3
Bug 807181 - Add a memory reporter for unique set size (USS), which we'll call "resident-unique". r=njn
...
Patch originally by Vivien Nicolas in bug 802110.
2012-10-31 21:03:30 -04:00
Justin Lebar
4dc299fc09
Bug 805207 - Follow-up: Add guard so KillClearOnShutdown doesn't crash if we haven't ClearOnShutdown'ed any objects. r=me, landed on a CLOSED TREE
2012-10-31 15:19:18 -04:00
Kartikaya Gupta
b70d7b6139
Bug 801818 - Add an API to check if the platform is a low-memory one. r=bsmedberg, blassey
2012-10-31 14:59:55 -04:00
Justin Lebar
75d1d2e144
Bug 805207 - Remove static destructor from ClearOnShutdown. r=bsmedberg
...
This prevents the assertion added in bug 803688 from firing when we do an unclean shutdown.
2012-10-31 13:30:35 -04:00
Kartikaya Gupta
f41bd071b2
Bug 806486 - Instead of setting/unsetting the umask which introduces potential race conditions, chmod the created files instead. r=glandium
2012-10-31 10:20:26 -04:00
Masayuki Nakano
e33e735f92
Bug 805357 part.2 Get rid of NS_SUCCESS_IME_NO_UPDATES since OnIMEFocusChange(false) is always called r=roc
2012-10-31 08:22:23 +09:00
Kartikaya Gupta
4f1989dd8e
Bug 806473 - Expose MemoryInfoDumper methods via a nsIMemoryInfoDumper service. r=jlebar
...
--HG--
rename : xpcom/base/MemoryInfoDumper.h => xpcom/base/nsIMemoryInfoDumper.idl
rename : xpcom/base/MemoryInfoDumper.cpp => xpcom/base/nsMemoryInfoDumper.cpp
2012-10-29 20:41:14 -04:00
Jacek Szpot
bea8356b2c
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Ehsan Akhgari
b2aa3c6059
Bug 806209 followup - fix a stupid mistake; irc-r=BenWa
2012-10-29 14:18:14 -04:00
Ehsan Akhgari
c2694e771c
Bug 806209 - Prevent the Windows implementation of NS_StackWalk from accessing the stdio APIs in order to avoid deadlocks when profiling on Windows; r=BenWa
...
--HG--
extra : rebase_source : cb945d9d3cb162a1177029a6aa097af33f7c917b
2012-10-29 14:03:01 -04:00
Justin Lebar
16a5fd30f0
Bug 806239 - When we dump memory reports after minimizing memory usage, we shouldn't also dump the reports before minimizing. r=njn
2012-10-28 20:18:40 -04:00
Justin Lebar
73af9cbc6d
Bug 799595 - Add nsIMessageLoop::PostIdleTask and use it to take screenshots. r=cjones
2012-10-25 11:36:24 -04:00
Justin Lebar
ed7f6604e2
Bug 800166 - Fire a low-memory notification when a B2G process is backgrounded. r=gwagner,bent
2012-10-22 15:40:19 -04:00
Brian Smith
035e8b8432
Bug 794510: Part 6 - Fixups needed to build on Windows and Android and Mac OS X debug, plus shorten comment to be less than 80 columns; r=ehsan
2012-10-18 15:55:48 -04:00
Bill McCloskey
0a9fd297da
Bug 798678 - Add weakmap key preservation support to cycle collector (r=mccr8)
2012-10-17 18:22:46 -07:00
Mats Palmgren
e9377b5d63
Bug 802473 - Make NS_FAILED return 0 or 1 (false/true typed as bool for C++). Use branch prediction macros for NS_FAILED/NS_SUCCEEDED. r=ehsan,bsmedberg
2012-10-18 02:43:06 +02:00
Isaac Aggrey
6058184f25
Bug 794510: Part 3 - create NSPRFormatTime.h with temporarily undef'd NO_NSPR_10_SUPPORT for compatibility; r=ehsan
2012-10-11 13:16:29 -05:00
Justin Lebar
5ac0f1447d
Bug 801780 - Part 1: Escape quotes in memory reporter paths when dumping to JSON. r=njn
2012-10-17 10:44:31 -04:00
Nicholas Nethercote
c132daca99
Bug 802007 - Remove unneeded Mac-only memory reporters. r=jlebar.
2012-10-15 21:45:54 -07:00
Jacek Caban
f3feeb7c28
Bug 801589 - Avoid redefining ERROR in ErrorList.h when wingdi.h is also included r=ehsan
2012-10-16 11:01:58 +02:00
Justin Lebar
2171be5d4d
Bug 800486 - Part 3: Minor fixups to MemoryInfoDumper.cpp. r=njn
2012-10-15 22:12:14 -04:00
Justin Lebar
2f597a1b5d
Bug 800486 - Part 2: Move signal-watching and memory-report-dumping code out of nsMemoryReporterManager and into a new file, MemoryInfoDumper. r=njn
2012-10-15 22:12:14 -04:00
Justin Lebar
b1de9b46c6
Bug 800486 - Part 1: Dump a GC and CC log upon receiving SIGRTMIN + 2. r=mccr8,njn,cjones
2012-10-15 22:12:14 -04:00
Mark Hammond
158318bf31
Bug 796526 - stop spewing errors re SysGetModuleInfo64 in debug builds. r=dbaron
2012-10-16 11:26:35 +11:00
Nicholas Nethercote
b4b005ce55
Bug 800187 (part 2) - Add a clarifying comment about memory reporter registration. r=bz.
...
--HG--
extra : rebase_source : 950d0a0bb9a6ffdea94b41ae16f62a407acff6d8
2012-10-11 21:05:42 -07:00
Nicholas Nethercote
e37c1e657a
Bug 800703 - Rename the existing, Valgrind-based DMD as "DMDV". r=khuey.
...
--HG--
rename : xpcom/base/dmd.h => tools/dmdv/dmdv.h
2012-10-08 15:31:17 -07:00
Alexander Surkov
5f743adb53
Bug 799909 - decomify Accessible::GetNameInternal, r=tbsaunde
2012-10-14 13:18:39 +09:00
Aryeh Gregor
d8217f6f81
Bug 779473 - Make nsresult an enum class; r=ehsan
2012-08-02 11:55:58 +03:00
Kartikaya Gupta
e71c7af87a
Bug 799686 - Make about:memory dump file readable on Android. r=njn
2012-10-13 08:54:49 -04:00
Trevor Saunders
e2db6e1941
bug 798595 - remove useless prmem.h includes r=ehsan
2012-10-04 02:14:06 -04:00
Gian-Carlo Pascutto
3cdc718d84
Bug 799228 - Clean up shellVersion and shellName and their users. r=blassey
2012-10-10 17:10:39 +02:00
Gian-Carlo Pascutto
0620d31654
Bug 799228 - Send Android version as OS version for Telemetry. r=blassey
2012-10-10 17:10:39 +02:00
Ehsan Akhgari
95975a997f
Bug 795238 follow-up - #include Attributes.h which defines MOZ_HAVE_CXX11_ENUM_TYPE
2012-10-09 09:39:32 -04:00
Ehsan Akhgari
da8a1ade99
Bug 795238 - Make nsresult a uint32_t enum everywhere that C++11 typed enums are supported; r=Aryeh
2012-10-09 09:23:52 -04:00
Landry Breuil
8512acf227
Bug 788021 followup: cast PR_NOW() to int64_t to fix a build failure on OpenBSD. r=jlebar
2012-10-06 11:03:52 +02:00
Justin Lebar
2e08b8974d
Bug 797904 - Include app name in about:memory dump. r=njn,cjones
2012-10-05 17:54:54 -04:00
Nathan Froyd
9738536099
Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
...
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Ehsan Akhgari
5d0ab6fa28
Backout changeset 9e38c5518605, fc59bd8d49ba, d0ba1abde985, and acf91f25f228 (bugs 796119, 796279, and 797106) because of broken reftests on 64-bit platforms
2012-10-02 23:16:36 -04:00
Nathan Froyd
d1cd4155c7
Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
...
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Justin Lebar
74b29b501b
Bug 788021 - Part 2: Add and implement nsIMemoryReporter::DumpMemoryReportsToFile. r=njn,cjones
2012-10-02 21:19:11 -04:00
Justin Lebar
9c2715e693
Bug 788021 - Part 1: Add nsGZFileWriter. r=bsmedberg
2012-10-02 21:19:11 -04:00
Phil Ringnalda
fb7f683c92
Back out 17b5b5dcd308, 04af81445c05, 15cc0aabab67 (bug 788021) and 2575a2f89d22 (bug 790417) for Linux crashes
2012-10-01 23:00:51 -07:00
Justin Lebar
b12f4cec24
Bug 788021 - Part 2: Add and implement nsIMemoryReporter::DumpMemoryReportsToFile. r=njn,cjones
2012-10-02 00:11:42 -04:00
Justin Lebar
1af87012c7
Bug 788021 - Part 1: Add nsGZFileWriter. r=bsmedberg
2012-10-02 00:11:42 -04:00
Isaac Aggrey
e5d101621c
Bug 795507: Remove usage of PR_BEGIN_EXTERN_C and PR_END_EXTERN_C; r=ehsan
2012-09-30 21:10:22 -05:00
Daniel Holbert
67da761f6c
Bug 793580 followup: Fix added comment to be C-style instead of C++-style, to fix build warning for .c files that include nsError.h. rs=Ms2ger (DONTBUILD because comment-only)
2012-09-28 12:34:54 -07:00
Seth Fowler
cbbe1a35f7
Bug 795086 - Make nsConsoleService only post a LogMessageRunnable to the event queue if there are any observers for it. r=bz
2012-09-28 09:54:36 -07:00
Isaac Aggrey
0cc4b12d36
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
Masatoshi Kimura
f1e6b8f196
Bug 764234 - Implement StringEncoding API. r=dougt,smontagu
2012-09-28 11:19:18 +01:00
Makoto Kato
93b40d0c00
Bug 793580 - Part 2: give the nsresult enum an explicit type on Win64; r=ehsan
...
--HG--
extra : rebase_source : 072e023d7d880cce5e9e6999fb81ec0f2c29a94c
2012-09-27 14:37:59 +09:00
David Zbarsky
715930c55a
Fix virtual dtor warning, no bug, blanket r=bz
2012-09-26 14:30:34 -04:00
Aryeh Gregor
0dbcfefe35
Bug 777292 - Make nsresult an enum; r=ehsan,cjones,bsmedberg
2012-08-07 11:27:45 +03:00
Ehsan Akhgari
70ba385729
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Jan Beich
008e09be21
Bug 791366 - Implement Vsize and Resident memory reports on BSDs. r=njn
2012-09-17 18:42:36 -04:00
Jan Beich
2d1a061499
Bug 791366 - Define HAVE_PAGE_FAULT_REPORTERS on every Unix. r=njn
2012-09-17 18:42:36 -04:00
Jeff Muizelaar
00587c07b1
Bug 782647. Move the nullptr workaround macros to MFBT so that it can be shared. r=waldo
...
This also changes the header to use compiler detection instead of a
configure test. This makes the header more portable because
it doesn't require the configure infrastructure.
2012-09-01 16:16:17 -04:00
Makoto Kato
909aba1eb8
Bug 785321 - Replace PRUptrdiff with uintptr_t, prtdiff_t or etc; r=ehsan,jrmuizel
2012-09-14 16:09:52 -04:00
Florian Quèze
f5337ac1ee
Bug 790947 - Show in the error console the path to the dumped memory reports, r=njn,smaug.
2012-09-14 15:47:12 +02:00
Olli Pettay
3b8770ecef
Bug 790589 - Add env variable to define the cc/gc log directory, r=mccr8
2012-09-13 09:24:12 +02:00
Nicholas Nethercote
5b759c2c17
Bug 768470 - Add ability to import/export memory reports as JSON. r=jlebar.
...
--HG--
extra : rebase_source : 8e03a7e8c82204ea8e353a9ba583c4d53917a267
2012-08-27 18:14:14 -07:00
Justin Lebar
08d12fafcc
Bug 788546 - In our stack-walking code, instead of asserting that we're initialized and failing if we're not, go ahead and initialize ourself when necessary. r=espindola
2012-09-10 15:51:45 -04:00
Chris Peterson
79be44178d
Bug 789643 - Fix GetCOMPtrCount() defined but not used
warning. r=bsmedberg
2012-09-07 12:32:33 -07:00
Olli Pettay
da2e3562f6
Bug 784563 - Investigate being lazier about removing things from the purple buffer, r=mccr8
2012-09-08 13:46:48 +03:00
Ehsan Akhgari
59fbcc9b3c
Bug 788014 - Part 2: Reduce the inclusion of prtypes.h in the tree to help using stdint types; r=jrmuizel
...
--HG--
extra : rebase_source : 66b3b6b9858fb032bebcc070347f781bdf61770c
2012-09-06 17:54:59 -04:00
Ehsan Akhgari
6f8adb0586
Bug 788014 - Part 1: Define nsrefcnt to be unsigned long unconditionally on Windows; r=jrmuizel
...
On Windows, IUknown::AddRef and IUnknown::Release are defined to
return ULONG, which is defined as unsigned long. The existing
code relies on the PR_BYTES_PER_LONG macro which is #defined in
prtypes.h to always be 4 on Windows. If we remove the prtypes.h
inclusion from nscore.h, in the places where prtypes.h is not
included by other things, we will fall into the other path in the
#ifdef condition which defines nsrefcnt to be unsigned int, which
causes the signature of AddRef and Release to change, which
results in linker errors.
There are a couple of reasons why this change is correct:
1. On both Win32 and Win64, the size of the long type is 4 bytes,
always. And prtypes.h doesn't detect the size of longs, it just
assumes it, so this check is really a tautology.
2. If the size of the long type changes on Windows, sometime,
the return value of AddRef and Release on Windows should change
size as well in order to maintain binary compatibility with
IUnknown, and before this change, the code would fail to hold
that promise.
--HG--
extra : rebase_source : 8333582b494aaca17c91cf35287a084083219050
2012-09-07 15:09:01 -04:00
Aryeh Gregor
e840991a39
Bug 783523 - Fix platform-specific nsresult misuse; r=ehsan,tbsaunde,smaug
2012-08-16 14:58:11 +03:00
Randell Jesup
29ac5c0b8c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Andrew McCreight
6e474d295c
Bug 785666 - Remove old-style CC Suspect and Forget functions. r=smaug,bsmedberg
2012-08-27 10:28:38 -07:00
Andrew McCreight
671b32897c
Bug 749366 - Remove mostly bogus size arg from CC callbacks. r=smaug
2012-08-27 10:41:04 -07:00
Ryan VanderMeulen
f88b773991
Merge m-c to inbound.
2012-08-24 16:18:09 -04:00
Olli Pettay
5931bf34db
Bug 785463 - Tweak PurpleBuffer Block size, r=mccr8
2012-08-24 12:26:44 -07:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gian-Carlo Pascutto
9b64357c0e
Bug 779687 - Add detection for ARMv7 CPUs. r=dougt
2012-08-21 13:20:46 +02:00
Andrew McCreight
8c942e77dd
Bug 750570, part 3 - Remove unused stabilizeForDeletion argument. r=smaug
...
This argument isn't used, and would have to have its type changed
to support native purple buffer participants, so we just remove it.
2012-08-24 09:50:06 -07:00
Andrew McCreight
6a69e406cb
Bug 750570, part 2 - Add purple buffer support for non-nsISupports classes. r=smaug
...
We add a new field to purple buffer entries, to store the participant for
non-nsISupports classes. For nsISupports, we store NULL instead. The participant
has to be passed into Suspect2.
In the cycle collector itself, we generalize canonicalization to handle the
possibility that we can just grab the participant directly from a field,
rather than needing to QI something.
Most of the patch is just routing around this extra pointer.
2012-08-24 09:50:06 -07:00
Andrew McCreight
86e263762f
Bug 750570, part 1 - lift UnmarkIfPurple to the root CC participant. r=glandium,smaug
...
All CC classes are potentially cycle collectable, so we need
to implement this function on the participant for all CC classes.
2012-08-24 09:50:06 -07:00
Aryeh Gregor
8274fefd77
Bug 768865 - Make NS_SUCCEEDED/NS_FAILED always inline functions for C++; r=bsmedberg
2012-06-27 17:54:01 +03:00
Aryeh Gregor
0a8f6b4783
Bug 782252 - Cast some nsresult to PRUint32; r=ehsan
2012-08-09 11:36:40 +03:00
Ehsan Akhgari
b457a9ddf0
Merge removal of nsnull
2012-08-14 11:29:00 -04:00
Aryeh Gregor
e2dd9c2028
Bug 626472 part 3 - Remove nsnull for good; r=ehsan
2012-08-12 13:43:47 +03:00
Rafael Ávila de Espíndola
f643277414
Bug 780272 - Audit calls to MozillaUnRegisterDebugFD. r=jlebar.
...
--HG--
extra : rebase_source : 53672602bfd370626916bcd0f5bc71859f8520c2
2012-08-10 12:40:21 -04:00
Jan Beich
c34ac7f060
Bug 781457 - Define _GNU_SOURCE for _Unwind_Backtrace. r=dbaron
2012-08-10 11:29:59 -04:00
Aryeh Gregor
982100775b
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Ms2ger
aa7cd71f5c
Bug 780387 - Part e: Stop using PRSize; r=bsmedberg
2012-08-09 09:10:11 +02:00
Ms2ger
331accfcb4
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
2012-08-09 09:09:40 +02:00
Jim Mathies
418325cf8d
Bug 780511 - Pipe additional debug output to the Windows debugger, r=neil.
2012-08-06 15:41:40 -05:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00