зеркало из https://github.com/mozilla/gecko-dev.git
Bug 516699 - Increase the interval between low-memory notifications. r=vlad
This commit is contained in:
Родитель
8ebbb5dc03
Коммит
899cc6ac46
|
@ -178,8 +178,8 @@ nsMemoryImpl::FlushMemory(const PRUnichar* aReason, PRBool aImmediate)
|
|||
rv = RunFlushers(aReason);
|
||||
}
|
||||
else {
|
||||
// Don't broadcast more than once every 100ms to avoid being noisy
|
||||
if (PR_IntervalToMicroseconds(now - sLastFlushTime) > 100) {
|
||||
// Don't broadcast more than once every 1000ms to avoid being noisy
|
||||
if (PR_IntervalToMicroseconds(now - sLastFlushTime) > 1000) {
|
||||
sFlushEvent.mReason = aReason;
|
||||
rv = NS_DispatchToMainThread(&sFlushEvent, NS_DISPATCH_NORMAL);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче