Bug 839312 - Specify gonk low-memory-killer priorityClasses in the correct order and fix typo in b2g.js which was preventing us from giving the kernel one of the necessary priority classes. r=jlebar

This commit is contained in:
Alan Huang 2013-02-08 14:09:26 +00:00
parent 5418102a77
commit 4275dc0291
2 changed files with 3 additions and 3 deletions

View File

@ -557,7 +557,7 @@ pref("hal.processPriorityManager.gonk.masterKillUnderMB", 1);
pref("hal.processPriorityManager.gonk.foregroundOomScoreAdjust", 67);
pref("hal.processPriorityManager.gonk.foregroundKillUnderMB", 4);
pref("hal.processPriorityManager.gonk.backgroundPerceivableOomScoreAdjust", 134);
pref("hal.processPriorityManager.gonk.backgroundPerceivebleKillUnderMB", 5);
pref("hal.processPriorityManager.gonk.backgroundPerceivableKillUnderMB", 5);
pref("hal.processPriorityManager.gonk.backgroundHomescreenOomScoreAdjust", 200);
pref("hal.processPriorityManager.gonk.backgroundHomescreenKillUnderMB", 5);
pref("hal.processPriorityManager.gonk.backgroundOomScoreAdjust", 400);

View File

@ -1050,9 +1050,9 @@ EnsureKernelLowMemKillerParamsSet()
const char* priorityClasses[] = {
"master",
"foreground",
"background",
"backgroundPerceivable",
"backgroundHomescreen",
"backgroundPerceivable"
"background"
};
for (size_t i = 0; i < NS_ARRAY_LENGTH(priorityClasses); i++) {
int32_t oomScoreAdj;