mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-10 07:12:16 +00:00
Bug 956080 - Rename BeginCycleCollection to TraverseRoots. r=smaug
This commit is contained in:
parent
b59a3ba405
commit
b0d96345f5
@ -872,7 +872,7 @@ CycleCollectedJSRuntime::ZoneParticipant()
|
||||
}
|
||||
|
||||
nsresult
|
||||
CycleCollectedJSRuntime::BeginCycleCollection(nsCycleCollectionNoteRootCallback &aCb)
|
||||
CycleCollectedJSRuntime::TraverseRoots(nsCycleCollectionNoteRootCallback &aCb)
|
||||
{
|
||||
static bool gcHasRun = false;
|
||||
if (!gcHasRun) {
|
||||
|
@ -194,7 +194,7 @@ public:
|
||||
nsCycleCollectionParticipant* GCThingParticipant();
|
||||
nsCycleCollectionParticipant* ZoneParticipant();
|
||||
|
||||
nsresult BeginCycleCollection(nsCycleCollectionNoteRootCallback &aCb);
|
||||
nsresult TraverseRoots(nsCycleCollectionNoteRootCallback &aCb);
|
||||
bool UsefulToMergeZones() const;
|
||||
void FixWeakMappingGrayBits() const;
|
||||
bool NeedCollect() const;
|
||||
|
@ -3157,8 +3157,8 @@ nsCycleCollector::BeginCollection(ccType aCCType,
|
||||
mBuilder = new GCGraphBuilder(mGraph, mResults, mJSRuntime, mListener, mergeZones);
|
||||
|
||||
if (mJSRuntime) {
|
||||
mJSRuntime->BeginCycleCollection(*mBuilder);
|
||||
timeLog.Checkpoint("mJSRuntime->BeginCycleCollection()");
|
||||
mJSRuntime->TraverseRoots(*mBuilder);
|
||||
timeLog.Checkpoint("mJSRuntime->TraverseRoots()");
|
||||
}
|
||||
|
||||
AutoRestore<bool> ar(mScanInProgress);
|
||||
|
Loading…
Reference in New Issue
Block a user