Skip to content

Commit

Permalink
Bug 1288618 - Part 7: Initialize AbstractThread in the GPU process. r…
Browse files Browse the repository at this point in the history
…=dvander
  • Loading branch information
mattwoodrow committed Sep 21, 2016
1 parent 2087e85 commit a5adb22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xpcom/build/XPCOMInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,9 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
NS_RUNTIMEABORT(jsInitFailureReason);
}
sInitializedJS = true;

// Init AbstractThread.
AbstractThread::InitStatics();

rv = nsComponentManagerImpl::gComponentManager->Init();
if (NS_FAILED(rv)) {
Expand All @@ -715,9 +718,6 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
// Init SharedThreadPool (which needs the service manager).
SharedThreadPool::InitStatics();

// Init AbstractThread.
AbstractThread::InitStatics();

// Force layout to spin up so that nsContentUtils is available for cx stack
// munging.
nsCOMPtr<nsISupports> componentLoader =
Expand Down Expand Up @@ -801,6 +801,8 @@ NS_InitMinimalXPCOM()
return NS_ERROR_UNEXPECTED;
}

AbstractThread::InitStatics();

return NS_OK;
}

Expand Down

0 comments on commit a5adb22

Please sign in to comment.