Commit Graph

566 Commits

Author SHA1 Message Date
Makoto Kato
44fd37413d bug 693280 - Android DNS lookup port is incorrect usage for external function defines. r=glandium 2011-12-22 10:13:31 +09:00
Makoto Kato
33673fb525 Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey 2011-12-21 14:09:17 +09:00
Jeff Walden
47be809fe0 Bug 711799 - Add MOZ_FINAL a bunch of places to silence Clang warnings. r=dbaron
--HG--
extra : rebase_source : e87978380d0821746e7df78dfacc7e381aefccb3
2011-12-17 22:47:45 -05:00
Justin Lebar
4a72b0a50d Bug 711602 - Fix "ASSERTION: bad size recorded" with CloseOnShutdown. r=bsmedberg 2011-12-19 15:49:04 -05:00
Matt Brubeck
efc97fe9ac Back out bcf9ce858829 and a3bade82ac92 (bug 711799) for build failures 2011-12-19 10:43:08 -08:00
Jeff Walden
208159aab8 Bug 711799 - Add MOZ_FINAL a bunch of places to silence Clang warnings. r=dbaron
--HG--
extra : rebase_source : 8ca811fe7427626e39f677a672986a27829b0feb
2011-12-17 22:47:45 -05:00
Justin Lebar
acbf253a40 Bug 711490 - Add telemetry and memory reporters for counting low-memory events. r=njn 2011-12-19 11:57:57 -05:00
Andrew McCreight
b853df90ad Bug 706164 - Add telemetry for CC forcing GC. r=bent 2011-12-05 09:04:41 -08:00
Nathan Froyd
7d3e14b253 Bug 709205 - use GetObserverService in xpcom; r=dougt 2011-12-09 14:36:17 -05:00
Justin Lebar
d2e1e33d33 Bug 670967 - Part 2: Wrap VirtualAlloc and friends, firing a low-memory notification if we notice that we're running low on virtual or physical memory after the wrapped function completes. r=bsmedberg
--HG--
extra : rebase_source : 95e8f6c1bd89991ff04b031795fb2b2c2d750849
2011-12-15 14:48:38 -05:00
Justin Lebar
9d36fab46a Bug 706958 - Add ClearOnShutdown() function which will clear a smart pointer on shutdown. r=bsmedberg 2011-12-15 10:51:11 -05:00
Justin Lebar
c42faab598 Back out bug 670967 due to Android red. 2011-12-15 09:42:21 -05:00
Justin Lebar
f5dfeae4bd Bug 670967 - Part 2: Wrap VirtualAlloc and friends, firing a low-memory notification if we notice that we're running low on virtual or physical memory after the wrapped function completes. r=bsmedberg 2011-12-15 09:09:53 -05:00
Matt Brubeck
cf63d241d6 Bug 708772 - (2/3) Add tablet flag to jar manifest parser and nsSystemInfo [r=bsmedberg] 2011-12-14 13:53:38 -08:00
Ehsan Akhgari
801e154584 Bug 710473 - Backout the nsDerivedSafe part from bug 666414 to make PGO builds on Windows work again; r=roc (cause he volunteered) a=xul-diet 2011-12-13 20:03:24 -05:00
Andrew Quartey
e51c16190c Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal 2011-12-13 14:17:59 +00:00
Javi Rueda
e54fc42266 Bug 379342 - Remove Win95/Win98 support code in XPCom; r=bsmedberg a=removal 2011-12-13 14:17:58 +00:00
Nicholas Nethercote
5ec7ee41ae Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Nicholas Nethercote
dffcf4709b Bug 703143 - backout 61d41436beb3 so that bug 700508 can be backed out. r=crashes. 2011-12-08 11:34:18 -08:00
Jeff Walden
c1ec82addd Bug 707352 - Remove NS_FINAL_CLASS completely. r=cjones 2011-12-05 17:10:05 -05:00
Nicholas Nethercote
60eb349dd0 Bug 700508 - Disallow non-leaf memory reporters. r=jlebar. 2011-12-06 16:20:17 -08:00
Rafael Ávila de Espíndola
eaa3408362 Bug 707648 - Only try to init the critical range if we are able to walk the stack. r=ehsan. 2011-12-06 14:26:49 -05:00
Steve Workman
3c3d8d69b7 Bug 694325: Add files for DNS Multithreading on Android; avoid undefined, unexposed libc symbols r=mwu 2011-12-05 10:41:11 -08:00
Rafael Ávila de Espíndola
c171f20afb Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.

The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.

To force a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.

This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.

--HG--
extra : rebase_source : bba4ac9e3378c88f7037aa884511e473a57121f6
2011-12-02 19:26:04 -05:00
Chris Lord
3ae56ad4cd Backout bug 696376
This broke building on android due to requiring a newer version of unwind.h.
2011-12-02 18:00:58 +00:00
Rafael Ávila de Espíndola
7a8af51b1f Bug 696376 - Change how we find critical ranges so that it works on 10.6 too. r=dbaron.
Currently we use dlsym on pthread_cond_wait$UNIX2003 to find a
function that indicates that new_sem_from_pool is on the stack. This
works on 10.5, but on 10.6 I could not find a single reliable
indicator that would work with dlsym.

The good news is that dladdr works with any symbol, not just exported
ones. To find the address of new_sem_from_pool, we set up a malloc logger
and force a call to new_sem_from_pool. From the logger callback we walk
the stack trying dladdr on every address.

To for a call to new_sem_from_pool, the initialization code has to be the
first to use semaphores, so it is now run from NS_LogInit.

This works on 10.6 and 10.5 (but we have to look for
"pthread_cond_wait$UNIX2003"). In 10.7 the call to malloc is gone, so we don't
have to worry about critical addresses on it anymore.
2011-12-01 18:22:00 -05:00
Terrence Cole
fb465cb23d 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
f1e77095c2 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
c6c27e37e2 Bug 668855, part 5: scan weak maps. r=gal 2011-11-24 07:35:57 -05:00
Andrew McCreight
5867337fb1 Bug 668855, part 4: store weak map info in CC data structure. r=gal 2011-11-24 07:35:56 -05:00
Andrew McCreight
250806422b Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv 2011-11-24 07:35:56 -05:00
Ed Morley
706170521c Merge mozilla-central and mozilla-inbound 2011-11-23 12:12:23 +00:00
Doug Turner
2277a616c3 Bug 694325 - Backout of bfb56029f4bd due to crashes on android tablets. r=sworkman 2011-11-22 14:58:25 -08:00
Steve Workman
714af1c1e6 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
ae17ec2da9 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
9f9ec78222 Bug 702529 Add GetVsize and GetResident methods on Solaris r=khuey 2011-11-21 11:09:52 +08:00
Lucas Molas
fa1d633ccd Bug 680556 - Make NS_(Re)Alloc infallible. r=bsmedberg 2011-11-09 11:42:00 -05:00
Ed Morley
aa5192da19 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-18 08:43:10 +00:00
Mark Finkle
09cf06ce4b Bug 703370 - Cleanup the console service logcat tag (sync with birch) [r=dougt] 2011-11-17 23:07:06 -05:00
Ed Morley
5abb71c4f8 Merge mozilla-central to mozilla-inbound 2011-11-15 19:19:24 +00:00
Doug Turner
daffb2c587 Bug 702029 - Push all console logging to androids adb logcat. r=blassey 2011-11-14 19:12:20 -08:00
Hugh Nougher
9ea9be7a1c Bug 702483 - Rename heap-committed-unallocated-fraction to heap-committed-fragmentation 2011-11-14 21:17:00 -05:00
Olli Pettay
588c360a28 Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8 2011-11-14 18:10:06 +02:00
Marco Bonardo
8c72c90eb0 Merge mozilla-central and mozilla-inbound 2011-11-11 11:09:58 +01:00
Ed Morley
fddedbce14 Merge m-c to b-s. 2011-11-08 23:18:09 +00:00
Ed Morley
01f7bdf1f4 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
34d5f356e4 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Gregory Szorc
de5e3e4887 Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey 2011-11-01 15:45:23 -07:00
Andrew McCreight
1cf9899558 Bug 694436 - begin CC listener before BeginCollection. r=bent 2011-10-13 17:37:18 -07:00
Wes Johnston
78c00de613 Bug 671634 - Update Fennec useragent to more closely match stock browser. r=dougt 2011-11-07 15:03:53 -08:00