зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1061969
- Ensure the memory is not flushed when the priority is updated. r=gsvelto
This commit is contained in:
Родитель
03a309c1c6
Коммит
b2619dff8c
|
@ -1105,10 +1105,6 @@ ParticularProcessPriorityManager::SetPriorityNow(ProcessPriority aPriority,
|
|||
unused << mContentParent->SendNotifyProcessPriorityChanged(mPriority);
|
||||
}
|
||||
|
||||
if (aPriority < PROCESS_PRIORITY_FOREGROUND) {
|
||||
unused << mContentParent->SendFlushMemory(NS_LITERAL_STRING("low-memory"));
|
||||
}
|
||||
|
||||
FireTestOnlyObserverNotification("process-priority-set",
|
||||
ProcessPriorityToString(mPriority, mCPUPriority));
|
||||
|
||||
|
|
|
@ -2861,6 +2861,12 @@ TabChild::MakeHidden()
|
|||
if (mWidget) {
|
||||
mWidget->Show(false);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIObserverService> os =
|
||||
mozilla::services::GetObserverService();
|
||||
if (os) {
|
||||
os->NotifyObservers(nullptr, "memory-pressure", NS_LITERAL_STRING("heap-minimize").get());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче