Kyle Machulis
1f0442ec54
Bug 1406206 - Remove extraneous else block from cycle collection macros; r=froydnj
...
clang-tidy is complaining about an extra else in
NS_INTERFACE_MAP_ENTRIES_CYCLE_COLLECTION. Not hurting anything, but
could be cleaned up anyways.
MozReview-Commit-ID: 36Lkdhs3fyN
2018-03-14 15:36:59 -07:00
Kyle Machulis
d855cee7b4
Bug 1402499 - Add NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED_0 r=bz
...
Add macro for nsISupports inheriting classes that need cycle
collection and only inherit from one parent, with no interface table
needed. Takes care of map and addref/release calls.
MozReview-Commit-ID: LtTwYH0DeEz
2017-09-28 23:21:09 -07:00
Andrew McCreight
8ea222d4f1
Bug 1390660, part 3 - Make QIing to a few CCed classes faster. r=peterv
...
QIing to CC interfaces shows up in Speedometer profiles for a few
classes. Presumably there are many of these objects being created and
destroyed. By making these classes check first for the CC interfaces
directly, rather than going up the inheritance chain, this overhead
should be reduced.
MozReview-Commit-ID: I3sf3my8oua
2017-08-16 14:31:40 -07:00
Andrew McCreight
435747b289
Bug 1390660, part 2 - Define and use a new macro for CC isupports. r=peterv
...
The main purpose of defining this is to make conversion of places that
use the non-CC variant easier. There are many more places that could
be converted to use these new macros, if somebody felt motivated.
MozReview-Commit-ID: HspjcN76fjg
2017-08-16 13:14:11 -07:00
Andrew McCreight
84ee98de3c
Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
...
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.
MozReview-Commit-ID: 5agRGFyUry1
2017-08-29 16:02:48 -07:00
Andrew McCreight
baf5d362af
Bug 1390692 - Remove the unnecessary second QI entry for nsCycleCollectionISupports. r=peterv
...
MozReview-Commit-ID: 4o2QZhdomg2
2017-08-22 12:51:10 -07:00
Ehsan Akhgari
101d2219a6
Bug 1384821 - Optimize inherited cycle-collectible QueryInterface() implementations for nsCycleCollectionISupports; r=peterv
2017-08-14 12:42:01 -04:00
Mike Hommey
da31d3a4cd
Bug 1368932 - Allow MOZ_PASTE_PREFIX_AND_ARG_COUNT to work with 0 arguments. r=froydnj
...
At the same time, remove the MOZ_STATIC_ASSERT_VALID_ARG_COUNT, which
doesn't actually work for more than 50 arguments(*), and which is now not
useful to detect 0 arguments.
(*) the build fails, but not directly thanks to the static_assert it
expands to.
2017-05-25 15:47:21 +09:00
Boris Zbarsky
897083284e
Bug 1332321. Make all cycle collection participants explicitly say whether they need skippability themselves, or just want whatever skippability their descendants want. r=mccr8
...
This way we can't end up with a situation in which an ancestor doesn't care about skippability but a descendant does and doesn't get it, because the ancestor just claimed no skippability was needed.
2017-01-24 16:11:56 -05:00
Benjamin Smedberg
d1c8ee1d1b
Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj
...
MozReview-Commit-ID: ARS1aTugYjl
2017-01-23 09:24:01 -05:00
483ce7d8db
Bug 386025 - Expose cycle-collection symbols, r=graydon
2007-08-06 07:34:02 -07:00
36dfc1e1c9
Followup to bug 348748 to fix the alignment of trailing backslashes in macros
...
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
98de634631
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
38bde3a93e
Fix warning.
2007-05-25 03:57:38 -07:00
653255d66d
Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking.
2007-05-24 07:10:02 -07:00
83a6c325f6
Fix for bug 378595 (Improve cycle collection QI performance). r/sr=sicking.
2007-04-25 09:35:27 -07:00
8494f2ef41
Fix for bug 372110 (Make cycle-collection debugging features optional at compile time). r=graydon, sr=jst.
2007-04-21 10:43:19 -07:00
peterv@propagandism.org
88b0f98916
Fix for bug 374096 (Cycle collector doesn't collect all the cycles it could). r=graydon, sr=dbaron.
2007-03-16 12:52:47 +00:00
peterv@propagandism.org
6151b803cd
Fix for bug 373219 (ASSERTION: Fault in cycle collector: null XPCOM pointer returned (ptr: 0)). r/sr=dbaron.
2007-03-09 13:14:06 +00:00
peterv@propagandism.org
ef649a237c
Try to fix bustage.
2007-03-08 11:31:14 +00:00
peterv@propagandism.org
76c2dfab1e
Fix for bug 368773 (Add a bunch of DOM objects to cycle collection). r=sicking, sr=jst.
2007-03-08 11:17:16 +00:00
peterv@propagandism.org
42658fb03c
Fix for bug 367779 (Make cycle collection through JS objects more reliable). r=jst, sr=brendan.
2007-02-18 20:05:32 +00:00
peterv@propagandism.org
2fc3ede943
Fix for bug 368549 (Cycle collector doesn't handle tearoffs correctly). r=graydon, sr=jst.
2007-02-18 14:38:04 +00:00
jonas@sicking.cc
7a41bbf68d
Bug 370332: Kill nsIBindingManager and nsIStyleRuleSupplier. r=dbaron for the layout/style parts, r/sr=jst for the rest.
2007-02-16 23:02:08 +00:00
gerv@gerv.net
2cf27fa541
Bug 236613: change to MPL/LGPL/GPL tri-license.
2007-02-14 17:33:38 +00:00
graydon@mozilla.com
4e1e338c38
Bug 366063: better fix to critical crasher, replacing band-aid submitted in 333078.
...
r=dbaron
2007-01-09 01:33:02 +00:00
graydon@mozilla.com
c164b31493
Bug 333078: XPCOM cycle collector
...
r=brendan, sicking, bz, dbaron, bsmedberg
2007-01-04 22:31:26 +00:00
vladimir@pobox.com
cd302b0183
backing out bug 333078, xpcom cycle collector due to perf issues
2006-11-22 23:18:16 +00:00
vladimir@pobox.com
c2bad5cc6e
b=333078, xpcom cycle collector -- patch from graydon@mozilla.com, r=many
2006-11-22 19:23:02 +00:00