Commit Graph

590 Commits

Author SHA1 Message Date
Olli Pettay
b691b9467a Bug 718634 - Move CanSkip* to nsCycleCollectionParticipant, r=mccr8
--HG--
extra : rebase_source : 7eb8cadf14e2d38d689e74a354d6edee6f7f9d20
2012-01-17 18:32:19 +02:00
Olli Pettay
a194588f7c Bug 716518 - Add skip* phases to cycle collector, r=mccr8
--HG--
extra : rebase_source : c53a42bbbc430384df37d0aeb0d882c09665f672
2012-01-14 18:58:05 +02:00
Ed Morley
740fc32cc3 Merge mozilla-central to mozilla-inbound 2012-01-11 17:28:35 +00:00
Benjamin Smedberg
a25d75630b Bug 675221 addendum to part A - reimplement the recursion check for the console service so that a poorly-written console listener doesn't cause an infinite repeition, r=bent 2012-01-11 11:28:21 -05:00
Benjamin Smedberg
29cd67e86a Bug 675221 part A: replace XPCOM proxies with runanble for code in XPCOM itself, r=bz 2012-01-11 11:28:21 -05:00
Justin Lebar
6ac5b1589c Bug 717092 - Rename pref 'low_physical_mem_threshold_mb' to 'low_physical_memory_threshold_mb', for consistency with the other low-memory prefs. r=njn 2012-01-11 11:11:32 -05:00
Nicholas Nethercote
d58223eec9 Bug 700508 - Disallow non-leaf memory reporters (attempt 3). r=jlebar. 2012-01-07 21:45:35 +11:00
Nicholas Nethercote
873e2b7d49 Bug 715453 (part 1) - Remove NS_MEMORY_REPORTER_CHECK_SIZES. rs=edmorley.
--HG--
extra : rebase_source : 79361dc475812d7f804ceaab4e3313127f96b677
2012-01-07 13:01:18 +11:00
Ed Morley
046f6decd4 Backout 4779d8df054b (bug 700508) for linux64 Moth orange 2012-01-06 16:23:05 +00:00
Nicholas Nethercote
c7f2d41685 Bug 700508 - Disallow non-leaf memory reporters (attempt 2). r=jlebar.
--HG--
extra : rebase_source : 040e3e7093f019caf7157a316e5fc75654eb5d65
2012-01-05 19:41:31 -08:00
Marco Bonardo
3017ba2181 Merge mozilla-central and mozilla-inbound 2012-01-05 11:31:12 +01:00
Makoto Kato
665bf4f397 Bug 715045 - Remove old vc support code. r=jimm 2012-01-05 16:52:22 +09:00
Brian R. Bondy
54527b0e1a Bug 481815 - Provide a Windows service for silent updates. r=rstrong. 2012-01-04 23:19:14 -05:00
Ehsan Akhgari
f751d264f8 Bug 714286 followup - Fix the temp path detection code for Windows; r=mccr8 2012-01-03 22:53:30 -05:00
Matthew Gregan
69cd282b07 Bug 710491 - Remove NS_SPECIALIZE_TEMPLATE from nsAutoRef's documentation. r=khuey DONTBUILD 2011-12-14 14:57:39 +13:00
Phil Ringnalda
01be1dd892 Merge mozilla-inbound with mozilla-central 2012-01-01 20:53:49 -08:00
Olli Pettay
11059bccc3 Bug 713778 - nsICycleCollectorListener should not enable trace_all by default, r=mccr8 2012-01-01 23:48:42 +02:00
Ehsan Akhgari
33f140a55b Bug 714286 - Cycle collection log should be written to a place where the process can write to, and the name of the file should be printed to the error console; r=mccr8 2012-01-01 17:34:00 -05:00
Nicholas Nethercote
13e0ce90ef Bug 708159 - Avoid unnecessary work done by multi-reporters in nsMemoryReporterManager::GetExplicit. r=jlebar,bent. 2011-12-12 19:04:12 -08:00
Ehsan Akhgari
44f218c3d4 Bug 713278 - Teach NS_StackWalk to walk the stack of other threads too on Windows; r=dbaron 2011-12-23 18:14:09 -05:00
Nicholas Nethercote
f6824360d3 Bug 712835 (part 2 of 3) - Add a memory reporter for the nsAtomTable. r=khuey.
--HG--
extra : rebase_source : 3c934649d072e0d519c905cb8baf49b12bce0312
2011-12-22 17:24:43 -08:00
Justin Lebar
729d39eda6 Bug 712997 - Add correct tri-license headers to AvailableMemoryTracker.{cpp|h}. r=gerv
--HG--
extra : rebase_source : 085859bd52094cb93f0144a8c2e86b34a9eaffe2
2011-12-22 09:54:00 -05:00
Rafael Ávila de Espíndola
03f0b2e63d Bug 708031 - refactor the ifdefs in nsStackWalk.cpp. r=dbaron.
--HG--
extra : rebase_source : 806f8437d30787c59e0059054c094fee77b5dce3
2011-12-22 11:00:48 -05:00
Jeff Walden
841701c767 Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron
--HG--
extra : rebase_source : 507006c0f099da6851b585d2062267d285978ad7
2011-12-16 14:42:07 -05:00
Makoto Kato
5e533e4d62 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
aa004cb7d1 Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey 2011-12-21 14:09:17 +09:00
Jeff Walden
d58b48ade0 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
2a6e6a172d Bug 711602 - Fix "ASSERTION: bad size recorded" with CloseOnShutdown. r=bsmedberg 2011-12-19 15:49:04 -05:00
Matt Brubeck
62cc037b2e Back out bcf9ce858829 and a3bade82ac92 (bug 711799) for build failures 2011-12-19 10:43:08 -08:00
Jeff Walden
17fa340376 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
82004e3f2e Bug 711490 - Add telemetry and memory reporters for counting low-memory events. r=njn 2011-12-19 11:57:57 -05:00
Andrew McCreight
819c130dad Bug 706164 - Add telemetry for CC forcing GC. r=bent 2011-12-05 09:04:41 -08:00
Nathan Froyd
79815ed55a Bug 709205 - use GetObserverService in xpcom; r=dougt 2011-12-09 14:36:17 -05:00
Justin Lebar
533924a0b0 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
26afae03b7 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
4b436ba76a Back out bug 670967 due to Android red. 2011-12-15 09:42:21 -05:00
Justin Lebar
7c1b792bf7 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
828e51635c 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
a544dace2d 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
faa8be8d82 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
313b993b78 Bug 379342 - Remove Win95/Win98 support code in XPCom; r=bsmedberg a=removal 2011-12-13 14:17:58 +00:00
Nicholas Nethercote
688c469bc9 Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Nicholas Nethercote
dfd419a275 Bug 703143 - backout 61d41436beb3 so that bug 700508 can be backed out. r=crashes. 2011-12-08 11:34:18 -08:00
Jeff Walden
3d8e7a0d23 Bug 707352 - Remove NS_FINAL_CLASS completely. r=cjones 2011-12-05 17:10:05 -05:00
Nicholas Nethercote
75ed0e4814 Bug 700508 - Disallow non-leaf memory reporters. r=jlebar. 2011-12-06 16:20:17 -08:00
Rafael Ávila de Espíndola
bb57c6b547 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
86d2741529 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
561bf65f37 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
cbca29d21a 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
b573c23826 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