Commit Graph

10089 Commits

Author SHA1 Message Date
Phil Ringnalda
9b232d9b47 Merge m-i <-> m-c 2011-12-24 21:50:23 -08:00
Ms2ger
41881a88d1 Bug 711838 - Remove the jetpack service; r=bsmedberg
Change to toolkit-makefiles.sh r=edmorley
2011-12-24 09:25:52 +01:00
Joerg Sonnenberger
e904a6e8a3 Bug 703878: Fix potential race condition in header.py. r=khuey
--HG--
extra : rebase_source : 843bf4e7c427ce7d2a976af99d62a32b9dd142ee
2011-12-22 18:38:27 -05:00
Rafael Ávila de Espíndola
347c7c6e99 Bug 708031 - refactor the ifdefs in nsStackWalk.cpp. r=dbaron.
--HG--
extra : rebase_source : 806f8437d30787c59e0059054c094fee77b5dce3
2011-12-22 11:00:48 -05:00
Nathan Froyd
eb38ba1e69 Bug 567135 - Need CFI for xptcstubs_arm; r=jimb 2011-10-20 15:17:27 -04:00
Justin Lebar
3ce4d7aa36 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
Ed Morley
14d7ce0332 Backout b02402b95e5c (bug 708277) for build failures on all platforms 2011-12-22 11:07:12 +00:00
Thomas Prip Vestergaard
62e57cac37 Bug 708277 - Replace PR_MAX with NS_MAX. r=roc 2011-12-22 11:47:59 +01:00
Jeff Walden
a158abd5b6 Bug 712129 - Implement MOZ_STATIC_ASSERT and MOZ_STATIC_ASSERT_IF. r=luke 2011-12-19 16:58:30 -05:00
Jeff Walden
62f48d8793 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
d8de16e6ab bug 693280 - Android DNS lookup port is incorrect usage for external function defines. r=glandium 2011-12-22 10:13:31 +09:00
Joe Drew
64c03d88cb Bug 717047 - Use <cmath> instead of math.h in nsMathUtils.h. r=bjacob
--HG--
extra : rebase_source : 4062a696008f27124c477367b043bc0f1d96710e
2012-01-10 18:04:12 -05:00
Ed Morley
52dc30d629 Merge last PGO-green changeset from mozilla-inbound to mozilla-central 2011-12-21 12:11:14 +00:00
Makoto Kato
6134979a79 Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey 2011-12-21 14:09:17 +09:00
Olli Pettay
1e8af4413d Bug 711841, Null(C)String(), r=bsmedberg,glandium 2011-12-20 21:46:00 +02:00
Christian Legnitto
9ddee30408 Bug 700000 - Version bump 2011-12-20 09:24:38 -08:00
Jeff Walden
55d623be48 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
87082c4df4 Bug 711602 - Fix "ASSERTION: bad size recorded" with CloseOnShutdown. r=bsmedberg 2011-12-19 15:49:04 -05:00
Matt Brubeck
347ae519fe Back out bcf9ce858829 and a3bade82ac92 (bug 711799) for build failures 2011-12-19 10:43:08 -08:00
Jeff Walden
d6fa425c6b 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
fb015e9846 Bug 711490 - Add telemetry and memory reporters for counting low-memory events. r=njn 2011-12-19 11:57:57 -05:00
Nicholas Nethercote
9dc2c72bd7 Bug 697335 - Another memory reporter for the startup cache. r=taras. 2011-12-18 16:20:36 -08:00
Nicholas Nethercote
5f03e241e2 Bug 697335 - Add nsBaseHashtable::SizeOfExcludingThis(). r=bz. 2011-12-18 14:39:47 -08:00
Nicholas Nethercote
0089711fa7 Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Matt Brubeck
f8451c0415 Merge mozilla-central to mozilla-inbound 2011-12-18 08:22:53 -08:00
Ms2ger
1015d69823 No bug - Remove stray semicolon in nsThread.cpp; rs=bsmedberg 2011-12-18 11:13:56 +01:00
Ms2ger
b2b42ad049 Bug 709747 - Support nsCOMPtr<T>::forget(I**); r=bsmedberg 2011-12-18 10:39:22 +01:00
Nathan Froyd
0071f7a006 Bug 709205 - use GetObserverService in xpcom; r=dougt 2011-12-09 14:36:17 -05:00
Michael Wu
9d176e161f Bug 710029 - Assorted build system tweaks for B2G/Gonk. r=khuey 2011-12-16 13:26:32 -08:00
Jim Mathies
2b13c975ad Bug 710995 - (pvs-studio) Possible bad null-check in ShortcutResolver::Init(). False positive, no bug. Code cleanup patch. r=rstrong 2011-12-16 08:53:07 -06:00
Mats Palmgren
1cab7ccb6c Bug 710060 - Make sure |mDir| is always nulled out after it's deleted. r=bbondy 2011-12-17 22:19:18 +01:00
Andrew McCreight
5b510f1127 Bug 706164 - Add telemetry for CC forcing GC. r=bent 2011-12-05 09:04:41 -08:00
Nicholas Nethercote
1e61957600 Bug 709470 - Use mallocSizeOf in the xpti memory reporter. r=khuey.
--HG--
extra : rebase_source : 6f9096f44e1c09c63c5294c3cae5c6cf46c350b2
2011-12-13 20:54:20 -08:00
Justin Lebar
8e06b410dd 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
bb1480e722 Bug 670967 - Part 1: Add mozilla::ScheduleMemoryPressureEvent(). r=bsmedberg
--HG--
extra : rebase_source : d1d8b245aa3b86ae434b0b2694d8781f25ad0683
2011-08-05 18:10:50 -04:00
Jacek Caban
bae2e93981 Bug 707469 - Don't use UNIX variant xptcinvoke implementation on mingw r=benjamin
--HG--
extra : rebase_source : 0602f21e843742ba814b070fbe1d856668d61421
2011-12-15 17:14:34 +01:00
Justin Lebar
36337622b8 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
eed22c8933 Back out bug 670967 due to Android red. 2011-12-15 09:42:21 -05:00
Justin Lebar
b44a6104a0 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
Justin Lebar
78b24d767e Bug 670967 - Part 1: Add mozilla::ScheduleMemoryPressureEvent(). r=bsmedberg 2011-08-05 18:10:50 -04:00
Mike Hommey
34ae9a22e5 Bug 709721 - Move video and audio libraries in a gkmedias library on Windows. r=khuey 2011-12-15 06:40:20 +01:00
Matt Brubeck
43fd2dc37f Bug 708772 - (2/3) Add tablet flag to jar manifest parser and nsSystemInfo [r=bsmedberg] 2011-12-14 13:53:38 -08:00
Kyle Huey
2dc09d69dd Backout Bug 709657 because it doesn't help our problem. 2011-12-14 08:01:49 -05:00
Ehsan Akhgari
8165dcad8a 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
Kyle Huey
4ef77dbef6 Bug 709657: Split uconv out of libxul. r=me a=me CLOSED TREE
--HG--
rename : intl/uconv/src/Makefile.in => intl/uconv/datamodule/Makefile.in
rename : intl/uconv/src/nsUConvModule.cpp => intl/uconv/datamodule/nsUConvDataModule.cpp
2011-12-13 10:48:16 -05:00
Andrew Quartey
6fe0fd072a 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
603e427733 Bug 379342 - Remove Win95/Win98 support code in XPCom; r=bsmedberg a=removal 2011-12-13 14:17:58 +00:00
Ed Morley
c90bfbf1c1 Merge mozilla-central to mozilla-inbound 2011-12-09 11:36:04 +00:00
Ed Morley
994e2f4cb4 Merge last green changeset of mozilla-inbound to mozilla-central 2011-12-09 11:12:51 +00:00
Jacek Caban
36ce41e3e0 Backout changeset e76f06f7e08d 2011-12-09 11:54:32 +01:00
Neil Rashbrook
daba677bf4 Bug 698256 Add and use Substring(data, length) convenience method r=dbaron 2011-12-09 08:35:41 +00:00
Nicholas Nethercote
8ea852b335 Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky 2011-12-08 21:01:52 -08:00
Jacek Caban
72aed52771 Bug 707469 - Don't use UNIX variant xptcinvoke implementation on mingw r=benjamin 2011-12-09 11:27:12 +01:00
Honza Bambas
e09bec0c14 Bug 676349 - Implement high-resolution platform timers for the Windows platform, r=robarnold 2011-12-09 00:14:42 +01:00
Mike Hommey
0887a4ec9e Bug 695843 part 10 - Allow nested omni.jar and build one for Android. r=bsmedberg 2011-12-08 11:03:36 +01:00
Nicholas Nethercote
6adcf21f7f Bug 703143 - backout 61d41436beb3 so that bug 700508 can be backed out. r=crashes. 2011-12-08 11:34:18 -08:00
Jeff Muizelaar
9317a91431 Bug 707800. Add more sampler labels. r=bgirard 2011-12-02 17:05:33 -05:00
Nicholas Nethercote
6bbcf3b4f8 Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Mike Hommey
45173f5be0 Bug 695843 part 9 - Use FileLocations in the component manager. r=bsmedberg 2011-11-08 18:10:51 +01:00
Mike Hommey
f8f93f4de1 Bug 695843 part 6 - Don't separate file and JAR modules in component manager. r=bsmedberg 2011-11-08 18:18:12 +01:00
Mike Hommey
511d9f638c Bug 695843 part 5 - Add a FileLocation class to either store a pair (zip, path) or a file, and do some operations on these. r=bsmedberg,mwu 2011-12-08 11:03:36 +01:00
Mike Hommey
021873a58d Bug 695843 part 3 - Use mozilla::AutoFDClose instead of ad hoc AutoCloseFD classes. r=bsmedberg 2011-12-08 11:03:36 +01:00
Mike Hommey
97ad3242be Bug 695843 part 2 - Avoid code duplication for components manifest registration. r=bsmedberg 2011-12-08 11:03:36 +01:00
Mike Hommey
cd155f464b Bug 695843 part 1 - Add Refcounting on nsZipArchives. r=mwu 2011-12-08 11:03:36 +01:00
Jeff Walden
84471e527a Bug 707352 - Remove NS_FINAL_CLASS completely. r=cjones 2011-12-05 17:10:05 -05:00
Atul Aggarwal
d480bf7f68 Bug 603243 - Making nsTString_CharT(char_type c) constructor private to avoid accidental misusage. 2011-11-16 19:42:03 +05:30
Ed Morley
fc379bcc47 Backout 9a59028a3510 (bug 676349) on suspicion of breaking Win PGO builds 2011-12-07 02:22:09 +00:00
Nicholas Nethercote
e2df423d2d Bug 700508 - Disallow non-leaf memory reporters. r=jlebar. 2011-12-06 16:20:17 -08:00
Rafael Ávila de Espíndola
aa9149f744 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
Honza Bambas
4e68ed8180 Bug 676349 - Implement high-resolution platform timers for the Windows platform, r=robarnold 2011-12-06 12:16:16 +01:00
Nicholas Nethercote
c14cf2fc1c Bug 704723 - Add memory reporter for XPConnect. r=mrbkap. 2011-12-05 14:24:28 -08:00
Steve Workman
50e8ffcb33 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
b30439c51a Backed out changeset c7bba86f5e02
It was failling with
../../../../../../../xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp:66:1: error: expected initializer before 'PrepareAndDispatch'
make[10]: *** [xptcstubs_x86_64_linux.o] Error 1
2011-12-05 10:39:20 -05:00
Jan Hubicka
04286fae95 Bug 577813 - Missing __attribute__ ((used)) on PrepareAndDispatch functions. r=benjamin. 2011-12-05 10:20:32 -05:00
jhorak@redhat.com
22ddfbac75 Bug 682832 - Don't ignore Gnome 3 proxy settings. r=karlt 2011-12-05 15:45:54 +01:00
Martin Stransky
643e9da3d3 Bug 706787 - Crash on s390x (nsXPCComponents::AttachNewComponentsObject() fails). r=glandium 2011-12-05 10:49:56 +01:00
Rafael Ávila de Espíndola
001dce7e90 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
b6c8db3dc8 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
083918d344 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
Brian R. Bondy
8d63d631cb Bug 688881 - Buffer overflow fix in nsDirectoryService::GetCurrentProcessDirectory. r=ehsan 2011-11-28 18:59:20 -05:00
Terrence Cole
b08432d55e 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
Rafael Ávila de Espíndola
3c3fda4257 Bug 705466 - Use MOZ_CHECK_HEADERS to check for cpuid.h. r=ted.
--HG--
extra : rebase_source : ecd108d166017cbd64c5be459a76cb2522723dfb
2011-11-28 15:32:32 -05:00
Nicholas Nethercote
6c6258e659 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Atul Aggarwal
6f23bb883b Bug 686775 - Matching external API version of StripWhitespace with internal version by adding stripping of \b. r=bsmedberg 2011-11-06 20:22:02 +05:30
Bobby Holley
553e03745f Bug 692342 - Remove IsPointer() and IsReference() accessors and flag the bits as deprecated. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
c93cd8301e Bug 692342 - Introduce deprecated_IsPointer() to handle the cases that are too mucky to figure out right now. r=mrbkap 2011-11-25 17:09:06 -08:00
Andrew McCreight
0bdc164384 Bug 668855, part 5: scan weak maps. r=gal 2011-11-24 07:35:57 -05:00
Andrew McCreight
fa0cc49dda Bug 668855, part 4: store weak map info in CC data structure. r=gal 2011-11-24 07:35:56 -05:00
Andrew McCreight
5b34144669 Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv 2011-11-24 07:35:56 -05:00
Ed Morley
c965e7cae0 Merge mozilla-central and mozilla-inbound 2011-11-23 12:12:23 +00:00
Doug Turner
ba42ee3f6e Bug 694325 - Backout of bfb56029f4bd due to crashes on android tablets. r=sworkman 2011-11-22 14:58:25 -08:00
Mike Hommey
29e01f8469 Bug 686466 part 3 - Use a pre-generated nsXREAppData struct instead of application.ini. r=ted,bsmedberg
--HG--
rename : build/application.ini => build/application.ini.in
2011-11-22 08:05:59 +01:00
Steve Workman
e80c212d1f 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
df2b7cbc5c 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
Benjamin Smedberg
937e72e1de Add MOZ_CRASHREPORTER ifdefs to the patch for bug 429592. r=captain bustage
--HG--
extra : rebase_source : 52d8221942a9be96dc76a546fbfa4c573331c1bf
2011-11-04 15:13:58 -04:00
Benjamin Smedberg
da0a1b5773 Bug 429592 - Add a monitor thread for process hangs and crash by default if a chrome process doesn't end up back in the event loop for more than 30 seconds. By default this affects non-debug builds only. r=cjones/bent
--HG--
extra : rebase_source : 338bad7e999d5a3c928a7b24965461fc0ff06a19
2011-10-12 13:52:26 -04:00
Ginn Chen
92194e1048 Bug 702529 Add GetVsize and GetResident methods on Solaris r=khuey 2011-11-21 11:09:52 +08:00
Atul Aggarwal
d2a6b6d8eb Bug 691113 - Improving error thrown when ; is missing from interface definition; r=khuey 2011-11-20 11:13:40 +00:00
Atul Aggarwal
e556d2cc63 Bug 585099 - Emit adjacent consts in IDL files in the same enum in generated headers. r=ted 2011-11-16 18:13:32 +05:30
bjarne@runitsoft.com
20971d0cc4 Bug 528569 - Storage stream's output stream should report itself as blocking. r=biesi 2011-11-19 12:53:57 +01:00