Bug 1013004 - Allow more time for ANR reports; r=snorp

This commit is contained in:
Jim Chen
2014-10-16 15:46:41 -04:00
parent 85d2dd7949
commit ad5bfd549c
2 changed files with 10 additions and 4 deletions

View File

@@ -16,7 +16,6 @@
#include <dlfcn.h>
#include <stdio.h>
#include <unistd.h>
#include <sched.h>
#include "nsAppShell.h"
#include "nsWindow.h"
@@ -1029,7 +1028,7 @@ Java_org_mozilla_gecko_ANRReporter_getNativeStack(JNIEnv* jenv, jclass)
if (PR_IntervalNow() - startTime >= timeout) {
return nullptr;
}
sched_yield();
usleep(100000ul); // Sleep for 100ms
profile = ProfilePtr(profiler_get_profile());
}