Nicholas Nethercote
d8a3b0f0bb
Bug 934321 - Add MemoryMultiReporter, a helper class that reduces some boilerplate, and convert all existing multi-reporters to use it. r=wchen.
...
--HG--
extra : rebase_source : a6110c3558c571b7908b63e8cc7ca21103098d0d
2013-11-06 14:58:20 +11:00
Gabriele Svelto
d48fd3d8ac
Bug 906754 - Ensure that TimeStamp's static fields are initialized only once. r=froydnj
2013-10-28 20:50:09 +01:00
Mike Hommey
1d566f7586
Bug 929905 - Consolidate sources in moz.build. r=gps
2013-10-25 08:23:05 +09:00
Mike Hommey
61124c1afc
Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps
2013-10-24 08:05:43 +09:00
Mike Hommey
e2ae65f67a
Bug 913268 - Make CPP_SOURCES a StrictOrderingOnAppendList. r=mshal
2013-10-24 08:00:23 +09:00
Benjamin Smedberg
b563c2d421
Bug 927944 part B - move AutoCriticalSection to nsWindowsHelpers.h and use it instead of manual lock handling in nsWindowsDllBlocklist.cpp, r=ehsan
...
--HG--
extra : rebase_source : 54e55b729263bffbb5a92c3336eacf248e99a659
2013-10-18 14:24:51 -04:00
Birunthan Mohanathas
4f2da6a7bd
Bug 784739 - Switch from NULL to nullptr in xpcom/ (1/3); r=ehsan
2013-10-10 16:41:00 -04:00
Mina Almasry
b9e52edf50
Bug 863966 - Improve perf of querySelector by caching selector list. r=bz
2013-10-09 09:20:45 -04:00
Nathan Froyd
853f67b8f3
Bug 919672 - lower the suspect referent count for the observer service's memory reporter; r=njn,wchen
...
I have a couple score (hundreds?) of open tabs and have been noticing of late
that the observer service has 4k+ observers for such a session. I was a bit
surprised by this, and lowered the suspect referent count a bit to see if I
could determine what was going on.
There's nothing particularly unusual with my setup, but I'd like to propose
that the count be lowered somewhat anyway. I think it's useful for about:memory
to provide as much information as possible about what might be going on. I've
also tried to update the explanatory text to indicate that merely having high
counts is not necessarily symptomatic of a leak.
2013-09-23 15:09:26 -04:00
Ehsan Akhgari
276e4b787c
Bug 919341 - Minimize the #includes in xpcom/ IDL files; r=bsmedberg
2013-09-23 13:29:27 -04:00
Ehsan Akhgari
b4cc06df88
Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg
2013-09-23 13:25:00 -04:00
Ehsan Akhgari
7ee5f54d35
Bug 918105 - Minimize the #includes in xpcom/ds; r=bsmedberg
2013-09-19 15:31:21 -04:00
Trevor Saunders
946e5b4a08
bug 915566 - rm makefiles in xpcom/ r=glandium
2013-09-12 08:15:51 -04:00
Joshua Cranmer
b511ee58c5
Bug 904985 - Use Char16.h in favor of NS_LL, Part 3: kill NS_LL. r=dbaron
...
--HG--
extra : rebase_source : bc105a8cbb87cc9b6b2db0734d9841fe599e794b
2013-09-17 22:43:21 -05:00
Joshua Cranmer
821f9d62df
Bug 904985, part 2: Use char16_t for NS_LITERAL_STRING, r=glandium, dbaron.
...
--HG--
extra : rebase_source : b4c9def93d907724fb4a1bc3f6279db87a11fb1f
2013-09-17 22:43:12 -05:00
Robert Longson
5fcefee60d
Bug 785140 - Correct SVG whitespace handling in various spots. r=smaug,dholbert
2013-09-17 13:52:39 +01:00
Ryan VanderMeulen
30168b484b
Merge fx-team to m-c.
2013-09-11 21:48:20 -04:00
William Chen
1f66b1e145
Bug 903285 - Add referent count reporting to pref service memory reporter. r=njn
2013-09-11 11:20:22 -07:00
Tim Taubert
e25193c0d2
Bug 911146 - Add nsIAppStartup attribute to tell whether the app was restarted; r=bsmedberg
2013-09-11 03:40:45 +02:00
Tim Taubert
091a950e0d
Backed out changeset 4c2ec5c33ea9 (bug 911146)
2013-09-11 04:53:01 +02:00
Tim Taubert
b25e6688fd
Bug 911146 - Add nsIAppStartup attribute to tell whether the app was restarted; r=bsmedberg
2013-09-11 03:40:45 +02:00
Nicholas Nethercote
9d1d4e73b0
Bug 910517 (3rd attempt) - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 2b2a1b2667d6562fcf803ec48b4a8c10fdd519a3
2013-08-27 16:24:51 -07:00
Robert O'Callahan
33cdb42706
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Phil Ringnalda
ad36ee41a9
Back out 4537337759b7 (bug 910517) because nobody expects the talos inquisition
...
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-04 22:42:06 -07:00
Nicholas Nethercote
43ad5b4dcf
Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 9142be547b2eeef37a8073a710ce23070f98cf65
2013-08-27 16:24:51 -07:00
Mike Hommey
f1cf3b4238
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Nicholas Cameron
e4770365e0
BUg 910160. IWYU for gfx/src. r=roc
2013-09-02 10:21:01 +12:00
William Chen
6ce6299431
Bug 903290 - Add a memory reporter for the observer service. r=njn
2013-08-26 11:56:23 -07:00
Sahil Chelaramani
8728295355
Bug 662669 - nsCharSeparatedTokenizer/nsWhiteSpaceSeparatedTokenizer should use RangedPtr; r=Waldo
2013-08-23 14:07:55 -07:00
Makoto Kato
9645c57fa1
Bug 901820 - Part 2. Remove nsCRT::strdup/nsCRT::strndup impl. r=bsmedberg
2013-08-22 19:32:11 +09:00
Makoto Kato
63341bc0ca
Bug 901820 - Part 1. replace nsCRT::strdup with strdup. r=bsmedberg
2013-08-22 19:31:48 +09:00
Ms2ger
4922ccbc0a
Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps
2013-08-22 08:56:01 +02:00
Ms2ger
c3e345584c
Bug 883284 - Part f: Move LIBXUL_LIBRARY into moz.build (p-z); r=glandium
2013-08-22 08:56:01 +02:00
Nathan Froyd
e4dd440733
Bug 906149 - make no-arg TimeDuration constructor constexpr to avoid a static constructor; r=ehsan
2013-08-16 15:23:28 -04:00
Michael Harrison
7123f492d6
Bug 486080 - Remove nsIByteBuffer and nsIUnicharBuffer. r=bsmedberg
2013-08-20 11:03:50 +00:00
Ed Morley
3d7e7a824d
Backed out changeset 35afcb18f192 (bug 662669) for build failures
2013-08-16 14:55:15 +01:00
Sahil Chelaramani
d0b8e6c609
Bug 662669 - nsCharSeparatedTokenizer/nsWhiteSpaceSeparatedTokenizer should use RangedPtr. r=Waldo
2013-08-16 09:18:13 -04:00
Kyle Huey
e9e214aa0e
Bug 901630: Remove support for the cc thread. r=mccr8
2013-08-13 10:45:32 -07:00
Ehsan Akhgari
55662e26d0
Bug 904121 - Do not include nsIMemory in nsMemory.h; r=vlad
...
--HG--
extra : rebase_source : b525ab299eeefdd39f6e919c8a0c6407f9bac209
2013-08-12 17:44:56 -04:00
Nathan Froyd
6bd4b3e0d0
Bug 901976 followup - fix Windows build bustage; r=bustage
2013-08-09 11:11:31 -04:00
Nathan Froyd
6230cde5a9
Bug 901976 - don't null-check |new X| in xpcom/; r=bsmedberg
2013-08-05 11:16:53 -04:00
Ms2ger
5c2b63d2c7
Merge m-c to inbound.
2013-08-02 11:07:57 +02:00
Mike Hommey
d01b5df996
Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8
2013-08-02 10:29:05 +09:00
Joey Armstrong
9bdf289b5e
Bug 870370 - Move EXTRA_COMPONENTS to mozbuild (file batch #3 ); r=mshal
2013-06-11 16:38:22 -04:00
Gabriele Svelto
e27e54667f
Bug 852250 - When restarting recompute the process startup timestamp instead of using the timestamp stored it in MOZ_APP_RESTART during the shutdown procedure. r=nfroyd
2013-07-31 12:51:58 +02:00
Ehsan Akhgari
5ee21d6d3f
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
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 "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
9854ac6166
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Joshua Cranmer
7b9a04da79
Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
...
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer
03b669f709
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
...
--HG--
extra : rebase_source : d54f6973e3ff859207115013e8361781769ffc76
2013-07-18 21:31:26 -05:00
Jacek Caban
da3b6f13ad
Bug 893444 - wine-gecko fails to compile when using mingw-w64+winpthreads r=glandium
2013-07-16 14:08:44 +02:00
Benoit Girard
5b43ee14ca
Bug 892861 - Remove useless -D flags 'IMPL_THEBES,_IMPL_NS_GFX,...'. r=glandium
2013-07-12 08:56:54 -04:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Mike Hommey
784edc021e
Bug 892401 - Remove NEW_H. r=ted
2013-07-12 09:16:41 +09:00
Anthony Jones
d204b25403
Bug 864447 - Move timing tracking out of APZC; r=BenWa
2013-07-10 11:26:08 +12:00
Justin Lebar
6c46d0633d
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
75c400493b
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Catalin Iacob
4f03e5bb1a
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Brian O'Keefe
5f8b5163e8
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Jacek Caban
db3f6c871b
Bug 879703 - Make TimeStampValue(_SomethingVeryRandomHere*) inline. r=tbsaunde
2013-06-06 12:59:18 +02:00
Trevor Saunders
cbbd41bc09
bug 876515 - make the default constructor for TimeStamp{,Value} constexpr r=froydnj
...
I had to remove the assert in the windows TimeStampValue::TimeStampValue() so
it could be constexpr. another option would be to make the constructors being
constexpr conditional on DEBUG, but that requires a couple ifdefs, and it just
seems simpler to make that constructor private and assume TimeStamp code itself
won't be so dumb as to pass that constructor a meaningful value expecting
something to be done with it.
2013-05-27 17:27:06 -04:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
David Zbarsky
36c8cfe5b7
Bug 872678: Mark nsStaticNameTable immutable after initialization to fix assertions r=dbaron
2013-05-21 18:22:45 +08:00
Ted Mielczarek
110919af49
bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium
2013-05-16 09:33:26 -04:00
Maria Grazia Alastra
d645d2e812
Bug 331566 - Change idl interfaces to use @throws instead of @return NS_. r=bsmedberg
2013-05-16 08:26:55 -04:00
Gabriele Svelto
c5cb74f8ec
Bug 793735 - Make XRE_StartupTimelineRecord() generate TimeStamps and modify its callers to use the appropriate timers, r=nfroyd
2013-03-26 11:31:20 +01:00
Gabriele Svelto
8d6ecdb6a0
Bug 793735 - Add functionality to create TimeStamp instances representing the process creation time, r=nfroyd
2013-03-28 11:28:09 +01:00
Aryeh Gregor
d183f6f9bc
Bug 859817 - Make nsStringBuffer::Alloc return already_AddRefed; r=bz
2013-04-22 14:13:22 +03:00
Honza Bambas
d6c90a7f32
Bug 836869 - Make QueryPerformanceCounter bad leap detection heuristic smarter, r=tellrob, sr=benjamin
2013-05-01 18:57:58 +02:00
Aryeh Gregor
e0a4cd5848
Bug 859817 - Make NS_NewAtom return already_AddRefed; r=bz
2013-04-22 14:13:22 +03:00
Mike Shal
77cdb6567d
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Nathan Froyd
c51a8b0019
Backout 61e1edc0b6bf (bug 793735), 77014412cd4a (bug 793735), and 8c5aa269c3cd (bug 793735) for botching FHR data
2013-04-09 16:25:42 -04:00
Boris Zbarsky
d0390f6f9c
Bug 858671. Make do_GetAtom infallible. r=khuey
2013-04-08 17:04:21 -04:00
Ehsan Akhgari
bfb42c373e
Bug 856455 - Make nsCOMArray::SetCapacity return void; r=bsmedberg
...
--HG--
extra : rebase_source : 38cdef904f9b7fc33bd3f41bd19b1778dfbd7990
2013-03-31 16:06:18 -04:00
Gabriele Svelto
dda7d72c6f
Bug 793735 - Make XRE_StartupTimelineRecord() generate TimeStamps and modify its callers to use the appropriate timers, r=froydnj
2013-03-26 11:31:20 +01:00
Gabriele Svelto
12254c942f
Bug 793735 - Add functionality to create TimeStamp instances representing the process creation time, r=froydnj
2013-03-28 11:28:09 +01:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Avi Halachmi
c817d69e80
Bug 853398: Disable TimeDuration::operator* (double) using MOZ_DELETE. r=bz
2013-03-22 16:51:08 +01:00
Mike Shal
c2a9341a2e
Bug 852534 - Remove GRE_MODULE from Makefile.in; r=gps
2013-03-21 08:41:00 -07:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Trevor Saunders
7b5cc7e54d
bug 852379 - remove unneeded prlock.h includes r=Ms2ger
2013-03-16 22:46:40 -04:00
Nicholas Nethercote
2702cf9b88
Bug 847248 (part 10) - Rewrite TimerEventAllocator and remove nsFixedSizeAllocator. r=bz,ehsan; sr=bsmedberg.
...
--HG--
extra : rebase_source : aaa9c2d0ffd268e8f1b9184e8230b1e7932f014d
2013-03-06 14:29:30 -08:00
Daniel Holbert
b76c363e13
Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg
2013-03-15 10:52:10 -07:00
Jeff Walden
0bfefb7eed
Bug 847480 - Blindly convert all existing mozilla::Abs users to mozilla::DeprecatedAbs. Individualized conversions to the reformed mozilla::Abs will continue until mozilla::DeprecatedAbs is unused, at which point it will be removed. r=Ms2ger
2013-03-05 15:43:30 -08:00
Mike Shal
e9f8bc0fbd
Bug 818246 - Part 7: Move XPIDL_MODULE to moz.build; rs=gps
2013-03-11 22:00:00 -07:00
Gregory Szorc
8b4f575df1
Bug 818246 - Part 5: Move XPIDLSRCS into moz.build (manual); r=glandium
2013-03-12 10:20:41 -07:00
Gregory Szorc
7bb3ee056b
Bug 818246 - Part 4: Move XPIDLSRCS into moz.build (auto); rs=glandium
...
This is the result of running
|mach mozbuild-migrate --list XPIDLSRCS SDK_XPIDLSRCS XPIDL_SOURCES| and
reverting xpcom/sample/*.
2013-03-12 10:17:46 -07:00
Nicholas Nethercote
4f0d1f0c41
Bug 847248 (part 1) - Improve documentation and reduce slop potential of nsFixedSizeAllocator. r=bz.
...
--HG--
extra : rebase_source : 31f6430e382605291cb79b1b810efb10aa4da1da
2013-03-03 18:42:41 -08:00
Jeff Walden
bf23cd54f1
Bug 835542 - Implement mozilla::Abs. r=Ms2ger
...
--HG--
extra : rebase_source : a3e62ff76365d27cc4cb10e4fee942ddb8b10b79
2013-02-15 19:55:36 -08:00
Gregory Szorc
a8e6b873d4
Bug 784841 - Part 18ν: Convert /xpcom; f=Ms2ger rs=ted
2013-02-25 13:20:02 -08:00
Jacek Caban
865b3c2ae1
Bug 822490 - Include cstdlib for std::abs (GCC fixup)
2013-02-13 13:33:57 +01:00
Honza Bambas
f15437c70d
Bug 827287 - make it possible to use TimeStamp without performance concerns (TimeStamp::NowLoRes), r=ehsan, sr=roc
2013-02-11 22:56:59 +01:00
Honza Bambas
b2f0520748
Bug 822490 - Radically simplify windows TimeStamp implementation, r=tellrob
2013-02-11 22:56:58 +01:00
Chris Peterson
539e783497
Bug 839962 - Part 2: Replace some XPCOM thread NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
2013-02-07 21:54:20 -08:00
Chris Peterson
481aeddb5f
Bug 839962 - Part 1: Replace some XPCOM refcount NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
2013-02-07 20:50:05 -08:00
Justin Lebar
c882a7379a
Bug 833913 - Part 1: s/PR_TRUE/true in nsISimpleEnumerator.idl comment. r=bsmedberg
2013-02-01 10:12:52 -05:00
Boris Zbarsky
ce4c3cbc12
Bug 834877 part 4. Add overloads of GetAttr() and GetId() that take a DOMString. r=peterv
2013-01-29 09:42:14 -05:00
Trevor Saunders
9f0ad48b28
bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8
2013-01-12 07:40:33 -05:00
Mats Palmgren
93d3d7b2b4
Bug 786533 - Replace NS_MIN/NS_MAX in xpcom/ with XPCOM_MIN/XPCOM_MAX to prevent accidental use. r=ehsan
2013-01-15 13:22:03 +01:00