Ensure the hang monitor is enabled in the GPU process. (bug 1311716, r=billm)
authorDavid Anderson <danderson@mozilla.com>
Mon, 24 Oct 2016 01:07:54 -0700
changeset 364259 4f7f541d40ec6064018b95f0f5afe9189bffcb8d
parent 364258 cd05381f28b151f9b8afb11af3f6b9366677d598
child 364260 525cf19ff64728acadc0c0c11e142d03388b6121
push id1369
push userjlorenzo@mozilla.com
push dateMon, 27 Feb 2017 14:59:41 +0000
treeherdermozilla-release@d75a1dba431f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs1311716
milestone52.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
Ensure the hang monitor is enabled in the GPU process. (bug 1311716, r=billm)
xpcom/build/XPCOMInit.cpp
--- a/xpcom/build/XPCOMInit.cpp
+++ b/xpcom/build/XPCOMInit.cpp
@@ -798,16 +798,18 @@ NS_InitMinimalXPCOM()
 
   // Global cycle collector initialization.
   if (!nsCycleCollector_init()) {
     return NS_ERROR_UNEXPECTED;
   }
 
   AbstractThread::InitStatics();
   SharedThreadPool::InitStatics();
+  mozilla::HangMonitor::Startup();
+  mozilla::BackgroundHangMonitor::Startup();
 
   return NS_OK;
 }
 
 //
 // NS_ShutdownXPCOM()
 //
 // The shutdown sequence for xpcom would be