summaryrefslogtreecommitdiffstats
path: root/xpcom/base/nsCycleCollector.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-02-03 08:34:08 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-02-03 08:34:08 +0100
commit9a8a050294414a7d248a4ec872744b43e1b9bfb1 (patch)
tree15da5ed8e56d99d3061cba56b9c253895af1849b /xpcom/base/nsCycleCollector.cpp
parentfa311a4cae5ea526e848adc4f49c6aa0b700702c (diff)
parente4a3b28c805e9419a076e1cdbe54056cfdcd3b41 (diff)
downloadUXP-9a8a050294414a7d248a4ec872744b43e1b9bfb1.tar
UXP-9a8a050294414a7d248a4ec872744b43e1b9bfb1.tar.gz
UXP-9a8a050294414a7d248a4ec872744b43e1b9bfb1.tar.lz
UXP-9a8a050294414a7d248a4ec872744b43e1b9bfb1.tar.xz
UXP-9a8a050294414a7d248a4ec872744b43e1b9bfb1.zip
Merge branch 'cycle_collector-work'
Diffstat (limited to 'xpcom/base/nsCycleCollector.cpp')
-rw-r--r--xpcom/base/nsCycleCollector.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp
index d6dc26954..06ed42326 100644
--- a/xpcom/base/nsCycleCollector.cpp
+++ b/xpcom/base/nsCycleCollector.cpp
@@ -2265,7 +2265,7 @@ CCGraphBuilder::BuildGraph(SliceBudget& aBudget)
SetFirstChild();
if (pi->mParticipant) {
- nsresult rv = pi->mParticipant->Traverse(pi->mPointer, *this);
+ nsresult rv = pi->mParticipant->TraverseNativeAndJS(pi->mPointer, *this);
MOZ_RELEASE_ASSERT(!NS_FAILED(rv), "Cycle collector Traverse method failed");
}
@@ -2539,7 +2539,7 @@ static bool
MayHaveChild(void* aObj, nsCycleCollectionParticipant* aCp)
{
ChildFinder cf;
- aCp->Traverse(aObj, cf);
+ aCp->TraverseNativeAndJS(aObj, cf);
return cf.MayHaveChild();
}
@@ -2596,7 +2596,6 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_END
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(JSPurpleBuffer)
CycleCollectionNoteChild(cb, tmp, "self");
- NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
#define NS_TRACE_SEGMENTED_ARRAY(_field, _type) \