Jesse Ruderman
7ed9e0fe1b
Bug 1024259: Use NS_FREE_PERMANENT_DATA more consistently. r=mccr8
2015-07-31 12:11:48 -07:00
Kyle Huey
8f1d6bf154
Bug 1152574: Fix console service discarding to run when it is actually safe to do so (off of inner-window-destroyed). Also add a backstop at xpcom-shutdown to discard any cycle collected messages before it is too late. r=froydnj
...
--HG--
extra : rebase_source : 689ed129fd8df604385dde4fe9d9477f14f2fced
2015-07-31 06:49:27 -07:00
Andrew McCreight
3127d66102
Bug 1189122 - Assert when we Suspect() when a CC scan is in progress. r=smaug
...
This can cause leaks that are invisible to our XPCOM leak detection system.
To avoid this, classes should not addref or release in their Traverse methods.
--HG--
extra : rebase_source : acd0b070c63cbb4111c165d6b131b8e3b822773a
2015-07-29 20:48:00 +02:00
Nicholas Nethercote
2d56c1f52e
Bug 1189156 (part 1) - Don't use enumeration style for PLDHashTable::SizeOf{In,Ex}cludingThis(). r=froydnj.
...
After this change, we have PLDHashTable::ShallowSizeOf{In,Ex}cludingThis(),
which don't do anything to measure children. (They can be combined with
iteration to measure children.)
This patch also removes the PL_DHashTableSizeOf{In,Ex}cludingThis() functions.
They're not necessary because the methods can be used instead.
Finally, the patch deliberately converts some SizeOfExcludingThis() calls to
SizeOfIncludingThis(). These are all done on heap pointers so this change is
valid.
--HG--
extra : rebase_source : b1d51096a8e7dcac29d7efd92e28938836ff5481
2015-07-29 22:28:20 -07:00
James Cheng
9aed940662
Bug 975246 - Part2- Test Invoking via operator->*. r=nfroyd
2015-07-29 02:52:00 +02:00
Nicholas Nethercote
87b80f8c66
Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
...
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.
And do likewise for nsTObserverArray.
--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Byron Campen [:bwc]
309a57122b
Bug 1059572 - Part 2: Make absolutely sure a timer is removed before reinitting it. r=nfroyd
...
--HG--
extra : rebase_source : 9a952241e046321a25adf52167bd7a538d25f37a
2015-07-28 10:10:54 -05:00
Byron Campen [:bwc]
e145322168
Bug 1059572 - Part 1: Move PostTimerEvent to TimerThread to allow TimerThread's monitor to protect it. r=nfroyd
...
--HG--
extra : rebase_source : ec9623818cd1a5f3a2665a1c4af4be7869c0dec3
2015-07-22 12:39:34 -05:00
Byron Campen [:bwc]
0978da8e2c
Bug 1059572 - Part 0.5: Fixes for pre-existing problems in TestTimers. r=nfroyd
...
--HG--
extra : rebase_source : c1b7e705e4a46f69f2567469ae54f866768de0a4
2015-07-29 11:43:40 -05:00
Byron Campen [:bwc]
e9930c8020
Bug 1059572 - Part 0: Fuzz test for timers. r=nfroyd
...
--HG--
extra : rebase_source : ca1e13f6b60ed61b190f8ace90d28f78e531e90b
2015-07-29 11:16:14 -05:00
Aidin Gharibnavaz
99b2a37529
Bug 108603 - Remove NS_IMPL_QUERY_INTERFACE_INHERITED0. r=mccr8, r=froydnj
...
--HG--
extra : rebase_source : 98a86a1ff5d023aa74800de8feb1cfe1846edf03
2015-07-24 12:13:00 -04:00
Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Bobby Holley
4762225b99
Bug 1188696
- Remove the XPCOM dependencies in nsRefPtr.h. r=froydnj
2015-07-29 10:44:58 -07:00
Nathan Froyd
c6d5ee54fb
Bug 1179787 - part 2 - add template logic for smart pointer template arguments in NS_NewRunnableMethod*; r=botond
2015-07-02 11:17:49 -04:00
Nathan Froyd
8ddd161b85
Bug 1179787 - part 1 - forward StorensRefPtrPassByPtr's constructor argument; r=botond
...
StorensRefPtrPassByPtr is currently used for storing reference-counted
types passed as T* template arguments to NS_NewRunnableMethodWith*.
We'd also like to use it to store nsRefPtr<T> template arguments. While
it could be used in its current form, it'd be better for its constructor
to support forwarding, so that something like:
NS_NewRunnableMethodWithArg<nsRefPtr<T>>(..., nsRefPtr<T>(local));
doesn't cause unnecessary reference counting.
2015-07-02 11:05:52 -04:00
Ryan VanderMeulen
fb6b2747d5
Bug 1180017 - Fix up the badly-horked backout and re-land.
...
CLOSED TREE
--HG--
extra : amend_source : 0b7ac18429b248cf05cfe33f6b2f6efdf1602c38
extra : histedit_source : bdb11dafa100809ec17491e5711fb0b507e023c6%2C5e4134650a804859dc8b3078688fa4655052263f
2015-07-29 12:31:47 -04:00
Jim Blandy
4e8fc0bdcb
Bug 1180017 - Give GCCellPtr is<T> and to<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
2015-07-03 15:06:23 -07:00
Carsten "Tomcat" Book
25a2a75a56
Backed out changeset 465793bc6fcf (bug 1180017) for suspicion of causing bug 1188799
2015-07-29 15:27:12 +02:00
Jacek Caban
1febc8154e
Bug 1188431 - Fixed length argument handling in char16ptr_t variant of NS_ConvertUTF16toUTF8 constructor. r=nfroyd
2015-07-29 12:26:40 +02:00
Jim Blandy
ff7cc06ef6
Bug 1180017: Give GCCellPtr is<T> and as<T> methods, replacing isFoo and toFoo methods. Fix callers. r=terrence
...
--HG--
extra : rebase_source : 4a381c5d8427ad2995426e65c69af1597b1557c2
2015-07-07 09:52:01 -07:00
Ehsan Akhgari
7a81d59cb2
Bug 1188203 - Fix more constructors in XPCOM; r=froydnj
2015-07-28 12:24:37 -04:00
Kyle Huey
6dad638eb2
Bug 1186780: Replace EnumerateRead with new iterators in cycle collection code. r=mccr8
2015-07-26 19:29:52 -07:00
Nicholas Nethercote
dbc67380bd
Bug 1187767 - Ensure PLDHashTable's generation is always updated when the entry store is modified. r=froydnj.
...
--HG--
extra : rebase_source : e70d253257eac422a454d20de0fb94d2ac736e84
2015-07-26 19:57:23 -07:00
Honza Bambas
61aeafa22b
Bug 1024056 - Simple ASCII lexical analyzer. r=nfroyd
2015-07-27 05:07:00 -04:00
Carsten "Tomcat" Book
c9839dd8f9
Backed out changeset 1ca5723f69d4 (bug 1186780) for dom crashes
2015-07-27 08:01:09 +02:00
Kyle Huey
6758447d5d
Bug 1186780: Replace EnumerateRead with new iterators in cycle collection code. r=mccr8
2015-07-26 19:29:52 -07:00
Nicholas Nethercote
10da8efa1c
Bug 1187197 (part 3) - Convert pldhash.{cpp,h} to C++ style comments. r=froydnj.
...
--HG--
extra : rebase_source : 4615862ad586e24050a6f5571b8d21689ba3fdf3
2015-07-23 23:13:11 -07:00
Nicholas Nethercote
42e338fc52
Bug 1187197 (part 2) - Put function return types on their own line. r=froydnj.
...
--HG--
extra : rebase_source : 58e81c134c321faa28e6ab46ed4c6c583a846ab5
2015-07-23 23:13:10 -07:00
Nicholas Nethercote
49a82c55c8
Bug 1187197 (part 1) - Move comments from PL_DHashTable* functions to the equivalent methods. r=froydnj.
...
Because the PL_DHashTable* functions will go away eventually (bug 1121760).
--HG--
extra : rebase_source : 6bd5aedf71c162102f4a7e06347c868d5dd78dbd
2015-07-23 21:43:48 -07:00
Michael Layzell
660f381a2f
Bug 1159433 - Part 4: Mark nsTAutoString_CharT and nsAutoArrayBase as non-memmovable; r=froydnj
2015-07-24 19:15:40 -04:00
Michael Layzell
66a04cf80f
Bug 1159433 - Part 3: Make nsTArray_CopyChooser only accept memmovable argument types by default; r=froydnj
2015-07-24 19:15:23 -04:00
Michael Layzell
69cc6fcb31
Bug 1123907 - Part 2: Add MOZ_NEEDS_NO_VTABLE_TYPE to Attributes.h, and use it to verify the EntryType argument of nsTHashtable; r=ehsan
2015-07-24 19:14:09 -04:00
Xidorn Quan
658cb19c1f
Bug 1187201 - Add char16 wrapper constructor for NS_ConvertUTF16toUTF8 in external string API. r=froydnj
...
--HG--
extra : source : 0facdb6085164a2f5a1674f795fc7a2df4332ca3
2015-07-24 23:06:50 +10:00
Julian Seward
41efe494ad
Bug 1183093 - Uninitialised value use in Probe::Trigger. r=dteller.
2015-07-24 11:45:50 +02:00
Nate Hughes
94f8966c4b
Bug 986302 - Add memory reporting for HPACK tables r=hurley r=njn
2015-07-17 14:38:10 -07:00
Nicholas Nethercote
50600e08a2
Bug 1181443 (part 2) - Use nsTHashtable::Iterator in TestHashtables.cpp. r=froydnj.
...
--HG--
extra : rebase_source : 8af9bef1f1f474555f09b41ec3d985add6d9d728
2015-07-23 02:36:13 -07:00
Nicholas Nethercote
3e2de4702c
Bug 1181443 (part 1) - Use nsTHashtable::Iterator in nsCheapSet. r=froydnj.
...
nsCheapSet is used little enough that I didn't bother creating an iterator for
it.
I removed the dependency on PLDHashOperator by introducing nsCheapSetOperator,
which is equivalent.
--HG--
extra : rebase_source : 8a15ae2ee0949a241f6417bfab614affbec2987c
2015-07-23 02:35:27 -07:00
Andrew McCreight
18401c9409
Bug 931571, part 15 - Remove extra spaces in nsVariant macros. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
14b12fbcf9
Bug 931571, part 14 - Delete various ways to copy or move nsDiscriminatedUnion. r=froydnj
...
nsDiscriminatedUnion owns memory without using smart pointers, so implementing anything
that would copy or move around one of these will require some care. Just forbid these
for now.
2015-07-23 12:28:30 -07:00
Andrew McCreight
13e2d3a560
Bug 931571, part 13 - Add a destructor for nsDiscriminatedUnion. r=froydnj
...
The existing nsDiscriminateUnions either always call Cleanup() when they
are about to go away, or they only handle scalar values so it is safe to
call Cleanup() on them without worrying about another discriminated union
having taken over any memory owned by this union.
2015-07-23 12:28:30 -07:00
Andrew McCreight
0994e4e4ed
Bug 931571, part 12 - Add nsDiscriminatedUnion::GetType(). r=froydnj
...
This is not quite enough to make the data members private because
XPCVariant pokes around to do some JS array stuff.
2015-07-23 12:28:30 -07:00
Andrew McCreight
4bdbcd2020
Bug 931571, part 11 - Turn nsDiscriminatedUnion's Traverse function into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
2cca253ff3
Bug 931571, part 10 - Turn SetFromVariant into a method. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cb922209d3
Bug 931571, part 9 - Turn most of the nsVariant setters into nsDiscriminated methods. r=froydnj
...
This also adds a new nsDiscriminatedUnion method SetFromDOMString, as somebody added an nsVariant method without the corresponding helper.
2015-07-23 12:28:30 -07:00
Andrew McCreight
8c28737b59
Bug 931571, part 8 - Turn ConvertToISupports, ConvertToInterface and ConvertToArray to methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
219f81d45f
Bug 931571, part 7 - Turn ConvertTo*String and ToString into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
83b488957d
Bug 931571, part 6 - Make ConvertToID and String2ID into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
6c297a19d4
Bug 931571, part 5 - Turn basic ConvertTo functions into methods. r=froydnj
2015-07-23 12:28:30 -07:00
Andrew McCreight
cadbb45b7f
Bug 931571, part 4 - Fix some spacing inside macros.
...
There's more that could be done to fix the style, but this was bothering me.
2015-07-23 12:28:30 -07:00
Andrew McCreight
79e1884b62
Bug 931571, part 3 - Rename return value of macro generated methods. r=froydnj
2015-07-23 12:28:29 -07:00