Commit Graph

590 Commits

Author SHA1 Message Date
Terrence Cole
d0ff732f1d Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC.  This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.

--HG--
extra : rebase_source : abdd11ee5fa5eb0e3d58122d3d72e98328d47668
2011-11-09 18:14:11 -08:00
Nicholas Nethercote
f102556f32 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Andrew McCreight
a526a1e44e Bug 668855, part 5: scan weak maps. r=gal 2011-11-24 07:35:57 -05:00
Andrew McCreight
bb93bea281 Bug 668855, part 4: store weak map info in CC data structure. r=gal 2011-11-24 07:35:56 -05:00
Andrew McCreight
46b5e713df Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv 2011-11-24 07:35:56 -05:00
Ed Morley
2da5c66f5b Merge mozilla-central and mozilla-inbound 2011-11-23 12:12:23 +00:00
Doug Turner
f18b339bad Bug 694325 - Backout of bfb56029f4bd due to crashes on android tablets. r=sworkman 2011-11-22 14:58:25 -08:00
Steve Workman
1e492d58a1 Bug 694325: Add threadsafe getaddrinfo to libmozutils; restore multi-threading to nsHostResolver for DNS requests. r=mwu 2011-11-21 18:21:21 -08:00
Jeff Walden
19f38bafe5 Bug 704127 - Implement MOZ_FINAL as a modifier for classes and virtual member functions. r=cjones
--HG--
extra : rebase_source : d95a3b3e726f810f299314358ba8c5e23557698e
2011-11-20 22:21:16 -08:00
Ginn Chen
375a95126e Bug 702529 Add GetVsize and GetResident methods on Solaris r=khuey 2011-11-21 11:09:52 +08:00
Lucas Molas
0601ddff94 Bug 680556 - Make NS_(Re)Alloc infallible. r=bsmedberg 2011-11-09 11:42:00 -05:00
Ed Morley
d06867876a Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-18 08:43:10 +00:00
Mark Finkle
947c65f236 Bug 703370 - Cleanup the console service logcat tag (sync with birch) [r=dougt] 2011-11-17 23:07:06 -05:00
Ed Morley
97ff754433 Merge mozilla-central to mozilla-inbound 2011-11-15 19:19:24 +00:00
Doug Turner
3e36b0c4d4 Bug 702029 - Push all console logging to androids adb logcat. r=blassey 2011-11-14 19:12:20 -08:00
Hugh Nougher
b76df8b343 Bug 702483 - Rename heap-committed-unallocated-fraction to heap-committed-fragmentation 2011-11-14 21:17:00 -05:00
Olli Pettay
6868642bc4 Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8 2011-11-14 18:10:06 +02:00
Marco Bonardo
58bfb85dcd Merge mozilla-central and mozilla-inbound 2011-11-11 11:09:58 +01:00
Ed Morley
24695badf6 Merge m-c to b-s. 2011-11-08 23:18:09 +00:00
Ed Morley
a64b07433e Backout 31d345404c98 (bug 671634) due to missing privacy review and necko peer review; a=dao 2011-11-08 10:43:36 +00:00
Michael Wu
3e0835d415 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Gregory Szorc
f9737cefa1 Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey 2011-11-01 15:45:23 -07:00
Andrew McCreight
e67ac61bae Bug 694436 - begin CC listener before BeginCollection. r=bent 2011-10-13 17:37:18 -07:00
Wes Johnston
a2f4279fa4 Bug 671634 - Update Fennec useragent to more closely match stock browser. r=dougt 2011-11-07 15:03:53 -08:00
Jonathan Watt
8a0b72332d Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg. 2011-10-28 19:33:28 +01:00
Mark Banner
cbd25443a2 Bug 693949 - Drop nsCStringArray. r=bsmedberg 2011-10-28 08:35:45 +01:00
Justin Lebar
0b13a5f417 Bug 693404 - Part 2: On Mac, purge MADV_FREE'd pages before reading RSS. r=khuey 2011-10-24 13:24:02 -04:00
Justin Lebar
500d48e1f3 Back out bug 693404 (2f7668cd67bc, 3db099ca452a) due to red. 2011-10-24 14:02:16 -04:00
Justin Lebar
ac6aa8951b Bug 693404 - Part 2: On Mac, purge MADV_FREE'd pages before reading RSS. r=khuey
--HG--
extra : rebase_source : c0f1f82aba30d32166e17d7d4216017475c9c09a
2011-10-24 13:24:02 -04:00
Luke Wagner
cad36b0123 Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
--HG--
extra : rebase_source : f18561fff556332789e05623ab0cec2e7faacf78
2011-07-01 14:11:31 -07:00
Justin Lebar
f0603174db Bug 695691 - Fix fscanf warning about %lu attached to size_t in nsMemoryReporterManager.cpp. r=njn 2011-10-20 11:57:54 -04:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Justin Lebar
9e4d4d4939 Bug 693976 - Don't parse /proc/self/maps once for every entry in /proc/self/smaps. r=khuey 2011-10-14 15:05:52 -04:00
Jeff Walden
eb2cb918a4 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden
0015843458 Really fix the redness from bug 693469. r=red 2011-10-12 12:02:08 -07:00
Jeff Walden
e19cd18cea Followup fix to ArrayLength stuff for bug 693469 -- ISO C++98 forbids templates declaring on local types. Boo-urns! r=red
--HG--
extra : rebase_source : f0e398168239c0be1274079e8260ff363198beee
2011-10-12 11:42:55 -07:00
Jeff Walden
77ebbde4ab Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Brad Lassey
d174ebedad Backed out changeset c3a50afc2243 due to large volume of crashes tracked in bug 687367 2011-10-10 10:40:27 -04:00
Justin Lebar
3637670041 Bug 692963 - Report heap-committed-unallocated-fraction in about:memory. r=khuey 2011-10-10 13:57:05 -04:00
Justin Lebar
254211dda2 Bug 681183 - Make jemalloc_stats.committed meaningful on *nix. r=khuey 2011-10-10 13:54:42 -04:00
Matt Brubeck
eb9465f1a3 Back out f7bf7ac18a79 (bug 684826), 3a910924c50c (bug 687367), and 524a6bb8744b (bug 693086) because of Android bustage on a CLOSED TREE 2011-10-10 09:47:27 -07:00
Ehsan Akhgari
ee637e4944 Merge mozilla-central into mozilla-inbound 2011-10-10 11:30:21 -04:00
Justin Lebar
cbc4216a44 Bug 693101 - Unbreak about:memory's parsing of /proc/smaps entries which live in /dev/ashmem on Android. r=khuey 2011-10-10 11:10:50 -04:00
Brad Lassey
ab723a6a51 merge 2011-10-10 10:40:57 -04:00
Brad Lassey
4528a38462 Backed out changeset c3a50afc2243 due to large volume of crashes tracked in bug 687367 2011-10-10 10:40:27 -04:00
Michael Edwards
8d268b37aa Bug 687367 - Make bionic domain name functions thread-safe on pre-3.0 Android, r=dougt 2011-10-06 20:55:50 -07:00
Justin Lebar
0d10563c8a Bug 692923 - Update heap-unallocated description to reflect the fact that heap-dirty doesn't have anything to do with fragmentation. r=khuey
--HG--
extra : rebase_source : d09f4bd41f694375f8d42a10cf278e3c5ac2b92f
2011-10-10 08:47:48 -04:00
Ed Morley
43c08e27c3 Merge last green changeset of mozilla-inbound to mozilla-central 2011-10-07 11:37:04 +01:00
Michael Wu
d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Ehsan Akhgari
b542efd4e6 Bug 666414 - Prevent AddRef and Release from being called on the pointers wrapped in nsCOMPtr and nsRefPtr; r=bsmedberg 2011-09-16 16:22:44 -04:00
Justin Lebar
b324c30126 Bug 686720 - Expose PSS from smaps in about:memory. r=khuey 2011-09-15 10:53:04 -07:00
Justin Lebar
5b35cccb7d Bug 686172 - In about:memory, make the smaps breakdown trees appear only where they're available (on Linux). r=khuey 2011-09-14 17:37:45 -07:00
Justin Lebar
5c092fdcf2 Bug 685870 - Fix about:memory's smaps breakdown on Android. r=khuey 2011-09-10 11:20:48 -04:00
Andrew McCreight
8455baa711 Bug 679779 - Add a #define to always log CC graph. r=bent 2011-08-17 10:35:40 -07:00
Justin Lebar
702c021819 Bug 674290 - Expose contents of /proc/self/maps and smaps in about:memory. r=njn
--HG--
extra : rebase_source : 3bbe2f926ba3b0c46a122d51b027a5a6283ae2b0
2011-08-05 18:22:11 -04:00
Matt Brubeck
ef44922f52 Back out 6cd3556fc807 (bug 674290) because of unittest leaks 2011-09-06 20:42:09 -07:00
Justin Lebar
5315b70bee Bug 674290 - Expose contents of /proc/self/maps and smaps in about:memory. r=njn 2011-08-05 18:22:11 -04:00
Justin Lebar
d2b57dbde1 Bug 684592 - In about:memory, update descriptions of heap-dirty and heap-committed, and only report heap-committed on Windows. rs=njn
--HG--
extra : rebase_source : 66b94efceb15920edcb6a27380450e52b25c5847
2011-09-06 11:57:58 -04:00
Andrew McCreight
49c706d2b5 Bug 649532 - make cycle collector logging output complete CC graph. r=peterv 2011-06-22 10:41:17 -07:00
Rafael Ávila de Espíndola
4387485520 Bug 682066 - Drop NS_DEFCALL. r=benjamin.
Having NS_DEFCALL around causes problems for clang since it uses
the regpart attribute when deciding template instantiations. In
particular, it would not use the generic method specialization of
nsRunnableMethodTraits.
2011-08-30 14:22:00 -04:00
Matheus Kerschbaum
3bcb2143b6 Bug 680625 part 0b: Remove more workarounds for past century compilers. r=ted 2011-08-26 00:35:13 +01:00
Matheus Kerschbaum
b9a52be4e0 Bug 680625 part 0: Remove checks and workarounds for 20th century compilers. r=ted 2011-08-26 00:35:13 +01:00
Matheus Kerschbaum
887ff1b97a Bug 678155 - Remove NS_COM. r=bsmedberg 2011-08-18 15:46:39 +02:00
Luke Wagner
87add7e577 Backed out changeset 0cf822d12c64 (and dependent be91fb29d950 and 53dd7a930bae) due to intermittent crashes
--HG--
extra : rebase_source : 9c96a4ac164ef8929591ef3d83ad6c974642557a
2011-08-15 17:21:23 -07:00
Luke Wagner
4263a80f79 Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
--HG--
extra : rebase_source : b20ddca63da88a8efe2f5dc06364785aebe8b9ea
2011-07-01 14:11:31 -07:00
Ehsan Akhgari
e48161b8ff Bug 677661 - Remove nsTPtrArray and add a SafeElementAt(index_type) API to nsTArray when it's instantiated with a pointer type; r=sicking 2011-08-10 01:36:00 -04:00
Justin Lebar
310504b74a Bug 675216 - Update about:memory's description of heap-committed. rs=njn 2011-08-06 11:01:36 -04:00
Dão Gottwald
41e1dbde77 Backed out changeset 5561bb7124db 2011-08-06 17:16:59 +02:00
Justin Lebar
6f6c68efa7 Bug 675216 - Update about:memory's description of heap-committed. rs=njn
--HG--
extra : rebase_source : 0193aec86119abd400ac6e9ef58bf6ba2a218a6b
2011-08-06 11:01:36 -04:00
Justin Lebar
a85147aac4 Bug 672731 - Followup to fix botched merge. Update the comment for UNITS_COUNT in nsIMemoryReporter. r=njn 2011-07-26 09:19:55 -04:00
Andrew McCreight
75e9df8a09 Bug 658672 - Reduce size of cycle collector node and edge blocks. r=peterv 2011-06-17 16:19:41 -07:00
Justin Lebar
3e07692ce3 Bug 672731 - Add UNITS_COUNT_CUMULATIVE to nsIMemoryReporter. r=njn 2011-07-24 23:56:50 -04:00
Nicholas Nethercote
f3aebefb11 Bug 669611 - Add memory reporter for GC heap fragmentation. r=jlebar. 2011-07-20 21:08:24 -07:00
Justin Lebar
470956d8ab Bug 671280 - Rename KIND_MAPPED to KIND_NONHEAP in nsIMemoryReporter. r=njn 2011-07-19 10:33:49 -04:00
Nicholas Nethercote
44f3c270fd Bug 669117 - Add a memory reporter for the Necko memory cache. r=khuey,jduell. 2011-07-18 18:22:36 -07:00
Andrew McCreight
cf9fbb4c46 Bug 665995 - Memory reporter for cycle collector. r=bent 2011-07-08 15:49:31 -07:00
Justin Lebar
4c7c7773bc Bug 667085 - Modify descriptions in nsMemoryReporterManager.cpp. r=njn 2011-07-07 09:14:53 -04:00
Nicholas Nethercote
63194d0020 Bug 678977 - Teach sqlite to use jemalloc directly when applicable. code=nnethercote,khuey. r=khuey,sdwilsh,jlebar. 2011-11-03 20:53:41 -07:00
Alon Zakai
7a2a264e2d Bug 692305 - Make cycle collector dumps multiprocess-friendly. r=dougt 2011-10-06 13:22:43 -07:00
Nathan Froyd
df7bb4249e Bug 684038 - Report cpuid in telemetry. r=dougt
--HG--
extra : rebase_source : 5cff4221baddabb01a31cdb847d1371d0574e48f
2011-10-06 11:35:46 -04:00
Marco Bonardo
94da8809f7 Merge mozilla-inbound and mozilla-central 2011-07-08 11:53:56 +02:00
Nicholas Nethercote
7b61ea2b0e Bug 653627 - Don't use char** in nsIMemoryReporter. r=khuey, sr=bz. 2011-07-08 12:45:16 +10:00
Nicholas Nethercote
d263e03bd2 Bug 668893 - Sort about:memory items of type COUNT alphabetically. r=jlebar. 2011-07-07 16:37:26 +10:00
Nicholas Nethercote
a74f9b9ef6 Bug 660731 - Add GetExplicit and GetResident methods to NSIMemoryReporterManager, attempt 3. r=khuey, sr=bz. 2011-07-07 15:54:34 +10:00
Justin Lebar
d118338822 Bug 668137 - Followup. Actually display vsize on Windows. r=khuey 2011-07-05 09:38:45 -04:00
Andrew McCreight
55cc0fa2b0 Bug 663920 - add telemetry for num of RCed and GCed nodes, and num collected. r=bent 2011-06-10 13:33:06 -07:00
Mike Hommey
d0f343df9f Bug 643779 - Allow to build nsDebugImpl.cpp on ARMv4T. r=dougt 2011-07-01 10:42:47 +02:00
Justin Lebar
cdf63080c2 Bug 668524 - Fix warning in nsMemoryReporterManager.cpp due to wrong order of initialization list. r=njn
--HG--
extra : rebase_source : c6609fbf0b470d1aa23937eea168f3780a2bc575
2011-06-30 19:54:42 -04:00
Justin Lebar
1b45b8710f Bug 668137 - Add vsize to about:memory on Windows. r=njn 2011-06-30 10:46:30 -04:00
Phil Ringnalda
eff8910ff9 Back out da1b9a3c0a98 (bug 668137) for failing to build on OS X 2011-06-29 21:48:57 -07:00
Justin Lebar
29c3d90d47 Bug 668137 - Add vsize to about:memory on Windows. r=njn 2011-06-30 00:10:50 -04:00
Paul Biggar ext:(%2C%20Jason%20Evans%20%3Cjasone%40canonware.com%3E%20and%20Dale%20Kim%20%3Cdalekim1%40illinois.edu%3E)
c0072a7363 Bug 414946 (part 1): Fix jemalloc on Mac, but leave disabled (r=pavlov)
Overwrite the OSX default zone allocator, taking into account the malloc_zone_t
version (supported versions are 3, 6, and 8) for Leopard, Snow Leopard and
Lion. jemalloc can be dynamically disabled for unknown malloc_zone_t versions,
for OSX 10.8 and beyond.

The changeset does not enable jemalloc, to allow for easy disabling if there's
a problem. It will be enabled in the next changeset.

This should be a 15-20% improvement in memory usage.
2011-05-21 20:27:00 -07:00
Nicholas Nethercote
800388b615 Bug 666075 - Add memory multi-reporters. r=khuey, sr=bz. 2011-06-30 09:39:32 +10:00
ISHIKAWA Chiaki
f0b29a4478 Bug 697102 - Correct the comment for unregisterErrorStringBundle(); r=bsmedberg DONTBUILD 2011-10-31 18:03:29 +00:00
Justin Lebar
169b00ccad Bug 664486 - Add page fault counts to about:memory on Linux and Mac. r=njn, sr=bz
--HG--
extra : rebase_source : 47dd7501dea7ae69e01828a5c730e8853739dc71
2011-06-16 14:34:09 -04:00
Andrew McCreight
4c9425df02 Bug 665044 - lift CC GC outside of the CCRunner mutex. r=bent 2011-06-21 15:06:42 -07:00
Kyle Huey
ecb9c8319d Merge b-s to m-c 2011-06-25 10:13:14 -07:00
Kyle Huey
22c9dc99a7 Bug 441197: Explicitly close file descriptors in nsTraceRefcntImpl rather than expecting the OS to clean up properly. r=dbaron 2011-06-24 07:22:37 -07:00
Marco Bonardo
acc6a474c6 Revert to changeset a87ee7550f6a due to incomplete backout 2011-06-24 17:23:04 +02:00