mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1087799, part 2 - Rename count to numWhiteNodes in nsCycleCollector::CollectWhite(). r=smaug
This commit is contained in:
parent
14343f4a96
commit
04f4e49d61
@ -3263,10 +3263,10 @@ nsCycleCollector::CollectWhite()
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t count = whiteNodes.Length();
|
||||
MOZ_ASSERT(numWhiteGCed <= count,
|
||||
uint32_t numWhiteNodes = whiteNodes.Length();
|
||||
MOZ_ASSERT(numWhiteGCed <= numWhiteNodes,
|
||||
"More freed GCed nodes than total freed nodes.");
|
||||
mResults.mFreedRefCounted += count - numWhiteGCed;
|
||||
mResults.mFreedRefCounted += numWhiteNodes - numWhiteGCed;
|
||||
mResults.mFreedGCed += numWhiteGCed;
|
||||
mResults.mFreedJSZones += numWhiteJSZones;
|
||||
|
||||
@ -3277,7 +3277,7 @@ nsCycleCollector::CollectWhite()
|
||||
timeLog.Checkpoint("CollectWhite::BeforeUnlinkCB");
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
for (uint32_t i = 0; i < numWhiteNodes; ++i) {
|
||||
PtrInfo* pinfo = whiteNodes.ElementAt(i);
|
||||
MOZ_ASSERT(pinfo->mParticipant,
|
||||
"Unlink shouldn't see objects removed from graph.");
|
||||
@ -3290,7 +3290,7 @@ nsCycleCollector::CollectWhite()
|
||||
}
|
||||
timeLog.Checkpoint("CollectWhite::Unlink");
|
||||
|
||||
for (uint32_t i = 0; i < count; ++i) {
|
||||
for (uint32_t i = 0; i < numWhiteNodes; ++i) {
|
||||
PtrInfo* pinfo = whiteNodes.ElementAt(i);
|
||||
MOZ_ASSERT(pinfo->mParticipant,
|
||||
"Unroot shouldn't see objects removed from graph.");
|
||||
@ -3303,7 +3303,7 @@ nsCycleCollector::CollectWhite()
|
||||
|
||||
mIncrementalPhase = CleanupPhase;
|
||||
|
||||
return count > 0;
|
||||
return numWhiteNodes > 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user