Commit Graph

552 Commits

Author SHA1 Message Date
Mounir Lamouri
ac6517508b Bug 735778 - Call MOZ_ASSERT if RemoveObserver is called with an observer that is not present. r=jlebar 2012-03-19 16:49:39 +01:00
Mark Finkle
2f256bcc57 Backout 7e28d1a2c648, 330b210f503d, 2421d39e0ab3, aa978ffa44bc, 38a71ae7e06d, b94319584a7a, 7e8278f5e814, 0b4e3c7608ab, 329c07609ca8, 0d61a0d8dba4, Due to Ts regression on Android 2012-03-17 21:51:39 -04:00
Ehsan Akhgari
9fb965340a Merge from mozilla-central 2012-03-17 12:32:28 -04:00
Mounir Lamouri
6ea2bd057f Bug 735778 - Call MOZ_ASSERT if RemoveObserver is called with an observer that is not present. r=jlebar 2012-03-16 19:32:11 +01:00
Kyle Huey
7b8018864e No Bug: Shut pldhash up for the 'probably' case. rs=bz 2012-03-16 10:09:14 -07:00
Mike Hommey
a062e24d2d Bug 716544 - Fix comparison between signed and unsigned integer expressions in nsStringAPI.h. r=dbaron 2012-03-13 09:47:02 +01:00
Mike Hommey
c17402ac1f Backout changesets 923a278f7ad5, 8f0164c90145, f5171db26f48, 7b590e1e392c and bd9a2f904e1f (bug 716544) because of Linux red 2012-03-13 10:29:26 +01:00
Mike Hommey
f23ba363ff Bug 716544 - Fix comparison between signed and unsigned integer expressions in nsStringAPI.h. r=dbaron 2012-03-13 09:47:02 +01:00
Justin Lebar
064e2cf3f9 Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
Ms2ger
4733cca974 No bug - Remove unused variables origStr from HashString; r=themaid 2012-03-11 09:48:18 +01:00
Nicholas Nethercote
8b96d26135 Bug 729008 - Add memory reporter for FramePropertyTable. r=bz.
--HG--
extra : rebase_source : e366cd84d50b5277f9949b340d44190371e753f8
2012-02-20 21:02:24 -08:00
Ed Morley
e63b667897 Backout afeafc02c1de, dfae37833c9b & f9f51c726fa7 (bug 729940 parts 1-3) for talos regressions 2012-03-05 15:22:28 +00:00
Justin Lebar
c07407a766 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 15:58:06 -05:00
Justin Lebar
2449f55f11 Back out bug 729940 (a108aee:d75775d) due to 32-bit red. 2012-03-04 14:20:34 -05:00
Justin Lebar
65b70fabf4 Bug 729940 - Part 3: Stop using crappy hash functions in Gecko. r=bz 2012-03-04 13:49:42 -05:00
Jesse Ruderman
5b165a3ca2 Bug 732607 - make nsTArray assertions fatal. r=bz 2012-03-03 13:16:13 -08:00
Justin Lebar
b3d892cff8 Bug 729952 - Part 2: Use a better hash function in nsCRT, nsTHashtable, and pldhash. r=bz 2012-03-02 17:20:44 -05:00
Nicholas Nethercote
29ca78c292 Bug 723799 - Use mallocSizeOf in the DOM memory reporters. r=mounir.
--HG--
extra : rebase_source : 2eb96d2f901bbe4cc1ff6dbccdec4dc4099b08fc
2012-02-01 13:58:01 -08:00
Bas Schouten
be63948579 Bug 725552 - Part 1: Turn MutexAutoLock into a template with specializations. r=cjones 2012-02-16 04:11:34 +01:00
Nathan Froyd
8c9068a69a Bug 700659 - add a Contains method to nsTHashtable; r=bsmedberg 2012-02-22 06:32:13 -08:00
Brian R. Bondy
c12098b4fa Bug 708690 - Updater enhancements for product information blocks. r=rstrong 2012-02-24 16:29:41 -05:00
Justin Lebar
4edf8b6f57 Bug 729453 - Decrease stack allocation in nsTArray::SwapArrayElements from 8KB to 64B. r=roc 2012-02-22 12:26:21 +01:00
Mike Hommey
99e3690cd6 Bug 686805 part 7 - Display linker stats on each Startup Timeline event. r=tglek,r=khuey 2012-02-22 08:12:15 +01:00
Andrew McCreight
5abe09f033 Bug 727313 - avoid warnings, add case for skippable CC macros. r=smaug 2012-02-15 15:28:42 -08:00
Olli Pettay
8435d939fc Bug 725768 - BBP for ObjectHolders, additional patch 2, r=mccr8 2012-02-13 22:59:14 +02:00
Raúl Porcel
223b301a25 Bug 724615 - Fix TARGET_CPU usage on ARM. r=benjamin 2012-02-06 22:44:52 +01:00
Nicholas Nethercote
42c76c1d40 Bug 671299 (part 1) - Add ns{Void,COM}Array::SizeOfExcludingThis(). r=bz.
--HG--
extra : rebase_source : 170c6943e985a8bafc4c441918a0e23fd52e15f2
2012-01-02 18:18:26 -08:00
Justin Lebar
b5dc2a4e3b Bug 719531 - Part 2: Make FallibleTArray use moz_malloc rather than NS_Alloc, because only the former is fallible. r=bsmedberg
--HG--
extra : rebase_source : 9259871f86b6fcaa805b0e042c52e10b751acdf5
2012-01-26 12:51:45 -05:00
Nicholas Nethercote
dd32d38d63 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Makoto Kato
8a1baaa906 Bug 717526 - fix warning of nsStringAPI.h on Win64. r=dbaron 2012-01-25 15:43:27 +09:00
Marco Bonardo
874c068f3a Bug 718999 - make "You can't dereference a NULL nsCOMPtr" assertions fatal.
r=bsmedberg
2012-01-24 20:37:48 +01:00
Olli Pettay
96842c7949 Bug 720423 - Add NS_DECL_CYCLE_COLLECTION_SKIPPABLE_SCRIPT_HOLDER_CLASS_INHERITED, r=mccr8
--HG--
extra : rebase_source : 91df46f35d3cc2c24462e0373c69e207f65a8bc3
2012-01-23 23:06:58 +01:00
Mike Hommey
67dd57d194 Bug 683127 part 6 - Use wrapped dl* functions in the XPCOM standalone glue when building with MOZ_LINKER on Linux. r=bsmedberg 2012-01-20 09:48:44 +01:00
Chris Pearce
39ca7c35b3 Bug 713381 - Add nsDeque::RemoveObjectAt(index). r=bsmedberg 2012-01-20 07:29:38 +13:00
Ted Mielczarek
43093371fa bug 706554 - Add nsRefPtrHashKey. r=bsmedberg 2011-11-30 16:30:55 -05:00
Chris Pearce
feca30f47a Bug Bug 713381 - backout 38271572005b,d5ebbc25b4b8,6435f51dd10d. r=backout 2012-01-19 11:56:54 +13:00
Chris Pearce
9a306f0a1f Bug 713381 - Add nsDeque::RemoveObjectAt(index). r=bsmedberg 2012-01-19 09:15:56 +13:00
Olli Pettay
3d279af6c1 Bug 718634 - Move CanSkip* to nsCycleCollectionParticipant, r=mccr8
--HG--
extra : rebase_source : 7eb8cadf14e2d38d689e74a354d6edee6f7f9d20
2012-01-17 18:32:19 +02:00
Olli Pettay
bf505639a0 Bug 716518 - Add skip* phases to cycle collector, r=mccr8
--HG--
extra : rebase_source : c53a42bbbc430384df37d0aeb0d882c09665f672
2012-01-14 18:58:05 +02:00
Vladan Djeric
242608b1f7 Bug 714450 - Mark the DB whitelist in Telemetry immutable after it is initialized. r=benjmain 2012-01-10 15:31:34 -05:00
Michael Kohler
bf6a5aaae5 Bug 711818 - MOZILLA_GUARD_OBJECT_NOTIFIER* should use a MOZ_ prefix to follow MFBT style 2012-01-10 00:29:30 -05:00
Mounir Lamouri
5d0ca55b99 Bug 716338 - Use FAIL_ON_WARNINGS in content/html/content/src. r=bz 2012-01-09 18:58:30 +01:00
Ed Morley
ea70443fc2 Backout b02402b95e5c (bug 708277) for build failures on all platforms 2011-12-22 11:07:12 +00:00
Thomas Prip Vestergaard
9e1bfdef23 Bug 708277 - Replace PR_MAX with NS_MAX. r=roc 2011-12-22 11:47:59 +01:00
Jeff Walden
6fc5b5e274 Bug 712129 - Implement MOZ_STATIC_ASSERT and MOZ_STATIC_ASSERT_IF. r=luke 2011-12-19 16:58:30 -05:00
Jeff Walden
5d0d2b2e73 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
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
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
Nicholas Nethercote
175743bc99 Bug 697335 - Another memory reporter for the startup cache. r=taras. 2011-12-18 16:20:36 -08:00
Nicholas Nethercote
23b9ee6f6f Bug 697335 - Add nsBaseHashtable::SizeOfExcludingThis(). r=bz. 2011-12-18 14:39:47 -08:00
Nicholas Nethercote
2fa63e0548 Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Ms2ger
7a4831d8b3 Bug 709747 - Support nsCOMPtr<T>::forget(I**); r=bsmedberg 2011-12-18 10:39:22 +01:00
Nathan Froyd
7d3e14b253 Bug 709205 - use GetObserverService in xpcom; r=dougt 2011-12-09 14:36:17 -05:00
Kyle Huey
cd392b3d7b Backout Bug 709657 because it doesn't help our problem. 2011-12-14 08:01:49 -05: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
Kyle Huey
aac6779e29 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
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
Nicholas Nethercote
2a7afd1ec3 Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky 2011-12-08 21:01:52 -08:00
Jeff Walden
c1ec82addd Bug 707352 - Remove NS_FINAL_CLASS completely. r=cjones 2011-12-05 17:10:05 -05:00
Nicholas Nethercote
0745fbcf8f Bug 704723 - Add memory reporter for XPConnect. r=mrbkap. 2011-12-05 14:24:28 -08:00
Rafael Ávila de Espíndola
9799f824dd 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
f1e77095c2 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
b292e37874 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
Andrew McCreight
250806422b Bug 668855, part 2: add nsCycleCollectionTraversalCallback hook for weak mappings. r=peterv 2011-11-24 07:35:56 -05: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
Kyle Huey
12171860ba Fix Bug 700512. r=sicking,bsmedberg 2011-11-18 10:19:44 -05:00
Ms2ger
6622e2e115 Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey 2011-11-16 08:50:19 +01:00
Gregory Szorc
3c849fad59 Merge b-s to m-c 2011-11-10 15:15:29 -08:00
Justin Lebar
dab3ae5833 Bug 701210 - nsTArray::SizeOf() should use malloc_usable_size. r=roc 2011-11-09 20:40:09 -05:00
Ed Morley
fddedbce14 Merge m-c to b-s. 2011-11-08 23:18:09 +00:00
Gregory Szorc
de5e3e4887 Bug 698248 - Remove unused FORCE_USE_PIC variable; r=khuey 2011-11-01 15:45:23 -07:00
Boris Zbarsky
8c01a25338 Bug 697917. Avoid atomizing the token for nsDOMTokenList containment tests. r=smaug 2011-10-28 13:06:39 -04:00
Mark Banner
da396f0de1 Bug 693949 - Drop nsCStringArray. r=bsmedberg 2011-10-28 08:35:45 +01:00
Justin Lebar
071827d613 Bug 164580 - Back out fix. It's not much (if at all) faster and may cause problems on some architectures. r=glandium 2011-10-16 15:28:36 -04:00
Boris Zbarsky
d94a00ec77 Bug 696195. Add single-argument SafeElementAt specializations for nsTArrays of smart pointers. r=jlebar 2011-10-25 12:58:01 -04:00
Mounir Lamouri
b81187bcec Bug 678694 - (5/7) Add a non-XPCOM observer system. sr=cjones
This adding an Observer<T> class and an ObserverList<T> class. The former can
get notifications. The later have an array if Observer<T>s and can Broadcast
notifications to them.
2011-11-02 14:47:32 +01: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
Jonathan Kew
36c1dc9fbe bug 671297 - add memory reporting for textRuns. r=roc,jlebar 2011-10-14 08:06:35 +01:00
Justin Lebar
72783f7f69 Bug 682437 - Add memory reporter for History::mObservers. r=bz
--HG--
extra : rebase_source : f280a6beefd32319816ff8720f7bf65c04343b1e
2011-09-14 17:37:45 -07:00
Ehsan Akhgari
7e4b277a75 Bug 689397 - Work around the broken-ness of gcc4.2 on Mac which causes the protection implemented in bug 666414 not take effect; r=bsmedberg 2011-09-26 20:45:25 -04:00
Ehsan Akhgari
a1ace9621b Bug 692782 - Bug 690670 broke clang builds; r=cjones 2011-10-07 15:31:12 -04:00
Justin Lebar
83e3821db7 Bug 689433 - Align nsAutoTArray<E> to E's natural alignment. r=roc
--HG--
extra : rebase_source : f7062f251f6905a58145ed6d94680f076dabbef7
2011-10-05 09:11:17 -04:00
Chris Jones
9928eba1eb Bug 690670, part 0: Add helpers for copy-constructing auto arrays from regular arrays. r=roc
--HG--
extra : rebase_source : e586553e4a2cf344f72347e195f42762f0183c99
2011-10-05 15:15:45 -07: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
Aditya Bhatt
126fa835f9 Bug 689301 - Compile error in nsTimerImpl.cpp with gcc 4.6.0 on Fedora core 15 x64; r=espindola 2011-09-27 17:11:03 -04: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
a55182fa93 Bug 687722 - Make swapping two nsAutoTArrays preserve their auto-ness when possible. r=roc 2011-09-22 11:22:20 -04:00
Justin Lebar
75d358b0cd Bug 685438 - Avoid wasted space in nsTArray_base due to jemalloc rounding up. r=roc
--HG--
extra : rebase_source : a7248bd865ffdc8932ee6dcc796cd4e48a5498ab
2011-09-21 00:46:56 -04:00
Atul Aggarwal
89e9702d5f Bug 685905 - Adding ReplaceElementAt to nsTArray. r=sicking 2011-09-20 21:04:35 +05:30
Ed Morley
dfbe5b23ad Bug 687342 - Move arm.cpp to ARM ifeq block in xpcom/glue/objs.mk to stop MSVC arm.obj LNK4221 warning; r=khuey 2011-09-20 02:13:08 +01:00
Justin Lebar
087ea9e1a0 Bug 686597 - Add a copy constructor to nsAutoTArray and friends. r=bz 2011-09-15 22:16:14 -07:00
Jacek Caban
6f8d9b5235 Bug 680868 - pldhash.cpp fails to compile on mingw-w64 r=benjamin 2011-09-09 15:07:22 +02:00
Atul Aggarwal
01f1da4a4a Bug 661962: Remove mostly-unused variable 'rv' from nsINIParser::Init (moving it inside the #ifdef block where it's used). r=bsmedberg 2011-09-01 03:06:26 +05:30
Ed Morley
19a1226d22 Merge last green changeset on m-i to m-c 2011-09-01 08:41:18 +01:00
Oleg Romashin
994208d9c8 Bug 682767 - Warning nsISupportsImpl.h: unused owner; r=bsmedberg 2011-08-31 13:16:13 +01: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
887ff1b97a Bug 678155 - Remove NS_COM. r=bsmedberg 2011-08-18 15:46:39 +02: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
Mike Hommey
c06a2320b0 Bug 675618 - Compile pldhash as C++. r=bsmedberg
--HG--
rename : xpcom/glue/pldhash.c => xpcom/glue/pldhash.cpp
2011-08-09 09:06:37 +02:00