mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 981033 - Clear mActivelyCollecting before restarting CC. r=smaug
This commit is contained in:
parent
60b29c62b7
commit
d1cecbd6d3
@ -3198,7 +3198,6 @@ nsCycleCollector::Collect(ccType aCCType,
|
||||
if (mActivelyCollecting || mFreeingSnowWhite) {
|
||||
return false;
|
||||
}
|
||||
AutoRestore<bool> ar(mActivelyCollecting);
|
||||
mActivelyCollecting = true;
|
||||
|
||||
bool startedIdle = (mIncrementalPhase == IdlePhase);
|
||||
@ -3239,6 +3238,10 @@ nsCycleCollector::Collect(ccType aCCType,
|
||||
}
|
||||
} while (!aBudget.checkOverBudget() && !finished);
|
||||
|
||||
// Clear mActivelyCollecting here to ensure that a recursive call to
|
||||
// Collect() does something.
|
||||
mActivelyCollecting = false;
|
||||
|
||||
if (aCCType != SliceCC && !startedIdle) {
|
||||
// We were in the middle of an incremental CC (using its own listener).
|
||||
// Somebody has forced a CC, so after having finished out the current CC,
|
||||
|
Loading…
Reference in New Issue
Block a user