Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Benjamin Smedberg
bf5cc1e428
Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
...
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Benjamin Smedberg
b22242dde3
Bug 1314378 part A - remove startupcache telemetry of dubious value. r=froydnj
...
MozReview-Commit-ID: J1cLTvO4ecC
2016-11-01 15:21:53 -04:00
Iris Hsiao
18539836a1
Backed out changeset 419e1a311337 (bug 1314378)
2016-11-16 15:30:57 +08:00
Iris Hsiao
ea85a6b247
Backed out changeset 4585a7b6f3ce (bug 1314378)
2016-11-16 15:30:52 +08:00
Benjamin Smedberg
9ef05e03bd
Bug 1314378 part B - port TestStartupCache to gtest, r=froydnj
...
MozReview-Commit-ID: LTz4slzIkjH
2016-11-11 11:57:08 -05:00
Benjamin Smedberg
92b3a2f097
Bug 1314378 part A - remove startupcache telemetry of dubious value. r=froydnj
...
MozReview-Commit-ID: J1cLTvO4ecC
2016-11-01 15:21:53 -04:00
Nathan Froyd
95aad13608
Bug 1249389 - part 5 - use UniquePtr instead of nsAutoArrayPtr in mozilla::scache::CacheEntry; r=erahm
2016-02-18 14:14:28 -05:00
Nathan Froyd
b06b227f8d
Bug 1249389 - part 4 - make StartupCache::GetBuffer take a UniquePtr outparam; r=erahm
...
This change eliminates a number of nsAutoArrayPtr usages, as well as
making the pattern GetBuffer() -> NewObjectInputStreamFromBuffer more
pleasant.
2016-02-18 12:26:28 -05:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
dd37a3b4b2
Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
...
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)
2015-07-30 21:19:57 -07:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Jim Chen
60420454db
Bug 1163719 - Store startup cache entries in loading order; r=nfroyd
2015-05-22 16:29:51 -04:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Birunthan Mohanathas
8d6d24e7c3
Bug 1045289 - Rename nsXPComInit.cpp to XPCOMInit.cpp. r=froydnj
2014-09-26 07:20:23 +03:00
Benoit Jacob
e6d8526db4
Bug 1028588 - Fix dangerous public destructors in miscellaneous places - r=ehsan
2014-06-23 18:40:03 -04:00
Nicholas Nethercote
fb860b68d3
Bug 947798 (part 2) - Remove MemoryMultiReporter, because it's no longer helpful. r=mccr8.
2013-12-07 21:39:47 -08:00
Nicholas Nethercote
0d8c64efcc
Bug 936964 (part 7, attempt 2) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz.
...
* * *
Bug 936964 (part 7b) - Fix a use-after-free found by ASan.
2013-11-07 16:35:30 +11:00
Nicholas Nethercote
cfeee3fe2b
Bug 936964 (part 1, attempt 2) - Make StartupCache ref-counted. r=aklotz.
2013-11-25 15:57:40 -08:00
Ehsan Akhgari
65aaebab72
Backed out 9 changesets (bug 943660, bug 936964) because of ASAN use-after-free crashes on browser-chrome and mochitest-other
...
Backed out changeset 85486c4aa3d8 (bug 936964)
Backed out changeset 25312eb71998 (bug 936964)
Backed out changeset 6dbb8333960c (bug 936964)
Backed out changeset da6465ad476f (bug 936964)
Backed out changeset a87ffc992f38 (bug 936964)
Backed out changeset 4ae3a61182db (bug 936964)
Backed out changeset 34e9c3137804 (bug 936964)
Backed out changeset fd1459e71585 (bug 936964)
Backed out changeset 3e8a701d8bdc (bug 943660)
Landed on a CLOSED TREE
2013-11-27 20:05:00 -05:00
Nicholas Nethercote
c363b9d028
Bug 936964 (part 7) - Make lots of classes report their own memory consumption, instead of using a separate reporter class. r=mccr8,sr=bz.
2013-11-07 16:35:30 +11:00
Nicholas Nethercote
f2f151addd
Bug 936964 (part 1) - Make StartupCache ref-counted. r=aklotz.
2013-11-25 15:57:40 -08:00
Nicholas Nethercote
8b7871625e
Bug 831193 (part 8) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in StartupCache.cpp. r=nfroyd.
2013-01-17 16:45:11 -08:00
Joshua Cranmer
8b349d8440
Bug 884061 - Part 3t: Use NS_DECL_THREADSAFE_ISUPPORTS in startupcache/, r=mwu
2013-07-18 21:24:14 -05:00
Catalin Iacob
f88cdc0744
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
2013-06-23 14:03:39 +02:00
Chris Peterson
d64ab9624b
Bug 829685 - Remove #include "prtypes.h" from some files that no longer use PR types. r=ehsan
2013-01-10 08:19:36 -08:00
Graeme McCutcheon
ad87dfcca5
Bug 724513 - Part 1 - Add StartupCache method for disregarding disk file. r=mwu
2012-10-11 09:17:15 +01:00
Ehsan Akhgari
8c1637eeeb
Backed out 3 changesets (bug 724513) for a 20-30% Ts regression across the board
...
Backed out changeset 006eb98e9d6f (bug 724513)
Backed out changeset f418d97d12ac (bug 724513)
Backed out changeset 1baac3f2334c (bug 724513)
2012-10-31 11:28:21 -04:00
Graeme McCutcheon
093e8b91b5
Bug 724513 - Part 1 - Add StartupCache method for disregarding disk file. r=mwu
2012-10-11 09:17:15 +01:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Ehsan Akhgari
4af2fd435f
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (startupcache parts); r=jrmuizel
2012-06-19 23:45:32 -04:00
Geoff Lankow
7a64448b03
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Nathan Froyd
1aa812be76
Bug 711297 - add recordAgesAlways method to nsIStartupCache; r=mwu
2012-02-22 14:07:18 -05:00
Nathan Froyd
b78702f85e
Bug 711297 - report age of startup cache via telemetry; r=taras
2012-02-22 14:03:52 -05:00
Vladan Djeric
b6fb90cf0d
Backed out aef22bc75f1f (bug 711297) - wrong comment in commit
2012-02-22 14:02:02 -05:00
Nathan Froyd
ae19fb5ebc
Bug 711297 - add recordAgesAlways method to nsIStartupCache; r=mwu
2012-02-22 13:45:56 -05:00
Nicholas Nethercote
c1dd090b4c
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
598607c7a1
Bug 697335 - Another memory reporter for the startup cache. r=taras.
2011-12-18 16:20:36 -08:00
Mike Hommey
b9e0b6f2ed
Bug 695843 part 1 - Add Refcounting on nsZipArchives. r=mwu
2011-12-08 11:03:36 +01:00
Nicholas Nethercote
a6d64b8f07
Bug 696690 - Memory reporter for the startup cache. r=tglek.
2011-10-24 17:50:47 -07:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Taras Glek
ec6776fdc4
Bug 586859: Move startup cache writing off main thread r=cjones a=blocking-final
2011-01-07 10:56:15 -08:00
Taras Glek
ac75bcbf2c
Bug 586859: prepare startup cache for off-main thread writing r=dwitte a=blocking-final
2011-01-07 10:55:14 -08:00
1937fc7ec8
bug 520309, startupcache core r=dwitte sr=bsmedberg a=bsmedberg
2010-08-12 12:37:44 -07:00