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 179788 d60ec8441e4cf70f945adcf63d0ab6290444fe03
parent 179787 5010b38abf18590cb17cf35e0cfaa933579cd748
child 179789 4d752223112e058383d95944535b9283c83ce9cb
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerskhuey
bugs992752
milestone31.0a1
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) {