Bug 723157 - Call forgetSkippable more often, r=mccr8

--HG--
extra : rebase_source : fdbca61ec4ef1d5898539f24248dd19f2767103e
This commit is contained in:
Olli Pettay 2012-02-01 19:44:03 +02:00
parent a569987a57
commit 5033c99fcd

View File

@ -3381,12 +3381,13 @@ CCTimerFired(nsITimer *aTimer, void *aClosure)
// Just few new suspected objects, return early.
return;
}
sPreviousSuspectedCount = suspected;
PRTime startTime;
if (sPostGCEventsToConsole) {
startTime = PR_Now();
}
nsCycleCollector_forgetSkippable();
sPreviousSuspectedCount = nsCycleCollector_suspectedCount();
sCleanupSinceLastGC = true;
if (sPostGCEventsToConsole) {
PRTime delta = PR_Now() - startTime;
@ -3397,7 +3398,7 @@ CCTimerFired(nsITimer *aTimer, void *aClosure)
sMaxForgetSkippableTime = delta;
}
sTotalForgetSkippableTime += delta;
sRemovedPurples += (suspected - nsCycleCollector_suspectedCount());
sRemovedPurples += (suspected - sPreviousSuspectedCount);
++sForgetSkippableBeforeCC;
}
} else {