Bug 1013004 - Allow more time for ANR reports; r=snorp
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user