Bug 952693 - Set priority of NUWA to hal::PROCESS_PRIORITY_MASTER. r=khuey, a=1.3+
authorKai-Zhen Li <kli@mozilla.com>
Sun, 22 Dec 2013 17:21:02 +0800
changeset 176047 03ae7f85549178f911653978d08d1bb581a52faa
parent 176046 7bdce58e65243b073047700a45fa0ba4c3e6f306
child 176048 5f657418212636782b404312f59786080263520d
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey, 1
bugs952693
milestone28.0a2
Bug 952693 - Set priority of NUWA to hal::PROCESS_PRIORITY_MASTER. r=khuey, a=1.3+
dom/ipc/PreallocatedProcessManager.cpp
--- a/dom/ipc/PreallocatedProcessManager.cpp
+++ b/dom/ipc/PreallocatedProcessManager.cpp
@@ -349,17 +349,17 @@ PreallocatedProcessManagerImpl::MaybeFor
   }
 }
 
 void
 PreallocatedProcessManagerImpl::OnNuwaReady()
 {
   NS_ASSERTION(!mIsNuwaReady, "Multiple Nuwa processes created!");
   ProcessPriorityManager::SetProcessPriority(mPreallocatedAppProcess,
-                                             hal::PROCESS_PRIORITY_FOREGROUND);
+                                             hal::PROCESS_PRIORITY_MASTER);
   mIsNuwaReady = true;
   if (Preferences::GetBool("dom.ipc.processPriorityManager.testMode")) {
     AutoJSContext cx;
     nsCOMPtr<nsIMessageBroadcaster> ppmm =
       do_GetService("@mozilla.org/parentprocessmessagemanager;1");
     nsresult rv = ppmm->BroadcastAsyncMessage(
       NS_LITERAL_STRING("TEST-ONLY:nuwa-ready"),
       JSVAL_NULL, JSVAL_NULL, cx, 1);