Bug 992752: Don't wait for the delayed prellocated process when launching an app. r=khuey
authorCervantes Yu <cyu@mozilla.com>
Mon, 07 Apr 2014 17:48:52 +0800
changeset 197878 d60ec8441e4cf70f945adcf63d0ab6290444fe03
parent 197877 5010b38abf18590cb17cf35e0cfaa933579cd748
child 197879 4d752223112e058383d95944535b9283c83ce9cb
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs992752
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 992752: Don't wait for the delayed prellocated process when launching an app. r=khuey
dom/ipc/PreallocatedProcessManager.cpp
--- a/dom/ipc/PreallocatedProcessManager.cpp
+++ b/dom/ipc/PreallocatedProcessManager.cpp
@@ -223,20 +223,18 @@ PreallocatedProcessManagerImpl::Allocate
 #ifdef MOZ_NUWA_PROCESS
 
 void
 PreallocatedProcessManagerImpl::RunAfterPreallocatedProcessReady(nsIRunnable* aRequest)
 {
   MOZ_ASSERT(NS_IsMainThread());
   mDelayedContentParentRequests.AppendElement(aRequest);
 
-  if (!mPreallocateAppProcessTask) {
-    // This is an urgent NuwaFork() request.
-    DelayedNuwaFork();
-  }
+  // This is an urgent NuwaFork() request. Request to fork at once.
+  DelayedNuwaFork();
 }
 
 void
 PreallocatedProcessManagerImpl::ScheduleDelayedNuwaFork()
 {
   MOZ_ASSERT(NS_IsMainThread());
 
   if (mPreallocateAppProcessTask) {