mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 820378 - Try to postpone triggering CC if we're in middle of GC handling, r=mccr8
This commit is contained in:
parent
508a8856ed
commit
8fce433824
@ -3308,6 +3308,12 @@ CCTimerFired(nsITimer *aTimer, void *aClosure)
|
||||
|
||||
PRTime now = PR_Now();
|
||||
if (sCCLockedOutTime == 0) {
|
||||
// Reset sCCTimerFireCount so that we run forgetSkippable
|
||||
// often enough before CC. Because of reduced ccDelay
|
||||
// forgetSkippable will be called just a few times.
|
||||
// NS_MAX_CC_LOCKEDOUT_TIME limit guarantees that we end up calling
|
||||
// forgetSkippable and CycleCollectNow eventually.
|
||||
sCCTimerFireCount = 0;
|
||||
sCCLockedOutTime = now;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user