mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Backed out changeset 6daddfb64d72 (bug 1228437) for timing out in test_NuwaProcessCreation.html on B2G ICS emulator debug. r=backout
This commit is contained in:
parent
ce3914c897
commit
5a0c92b331
@ -532,16 +532,12 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
|
||||
sExitManager = new AtExitManager();
|
||||
}
|
||||
|
||||
MessageLoop* messageLoop = MessageLoop::current();
|
||||
if (!messageLoop) {
|
||||
if (!MessageLoop::current()) {
|
||||
sMessageLoop = new MessageLoopForUI(MessageLoop::TYPE_MOZILLA_UI);
|
||||
sMessageLoop->set_thread_name("Gecko");
|
||||
// Set experimental values for main thread hangs:
|
||||
// 128ms for transient hangs and 8192ms for permanent hangs
|
||||
sMessageLoop->set_hang_timeouts(128, 8192);
|
||||
} else if (messageLoop->type() == MessageLoop::TYPE_MOZILLA_CHILD) {
|
||||
messageLoop->set_thread_name("Gecko_Child");
|
||||
messageLoop->set_hang_timeouts(128, 8192);
|
||||
}
|
||||
|
||||
if (XRE_IsParentProcess() &&
|
||||
|
@ -109,12 +109,8 @@ Crash()
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
// If you change this, you must also deal with the threadsafety of AnnotateCrashReport in
|
||||
// non-chrome processes!
|
||||
if (GeckoProcessType_Default == XRE_GetProcessType()) {
|
||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("Hang"),
|
||||
NS_LITERAL_CSTRING("1"));
|
||||
}
|
||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("Hang"),
|
||||
NS_LITERAL_CSTRING("1"));
|
||||
#endif
|
||||
|
||||
NS_RUNTIMEABORT("HangMonitor triggered");
|
||||
@ -260,8 +256,10 @@ ThreadMain(void*)
|
||||
void
|
||||
Startup()
|
||||
{
|
||||
if (GeckoProcessType_Default != XRE_GetProcessType() &&
|
||||
GeckoProcessType_Content != XRE_GetProcessType()) {
|
||||
// The hang detector only runs in chrome processes. If you change this,
|
||||
// you must also deal with the threadsafety of AnnotateCrashReport in
|
||||
// non-chrome processes!
|
||||
if (GeckoProcessType_Default != XRE_GetProcessType()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -295,8 +293,7 @@ Startup()
|
||||
void
|
||||
Shutdown()
|
||||
{
|
||||
if (GeckoProcessType_Default != XRE_GetProcessType() &&
|
||||
GeckoProcessType_Content != XRE_GetProcessType()) {
|
||||
if (GeckoProcessType_Default != XRE_GetProcessType()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user