Bug 942040 - Remove a process from BackgroundProcessLRUPool in ParticularProcessPriorityManager only if it is indeed a background process. r=khuey

This commit is contained in:
Alan Huang 2013-11-22 17:10:30 +08:00
Родитель d5337ec0b8
Коммит 8caf4f9ee0
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -1045,7 +1045,9 @@ ParticularProcessPriorityManager::ShutDown()
mResetPriorityTimer = nullptr; mResetPriorityTimer = nullptr;
} }
if (mPriority == PROCESS_PRIORITY_BACKGROUND && !IsPreallocated()) {
ProcessPriorityManager::RemoveFromBackgroundLRUPool(mContentParent); ProcessPriorityManager::RemoveFromBackgroundLRUPool(mContentParent);
}
mContentParent = nullptr; mContentParent = nullptr;
} }