зеркало из https://github.com/mozilla/gecko-dev.git
Bug 867313: 'crash on hang' doesn't always trigger. r=ehsan
This commit is contained in:
Родитель
d04b8f699b
Коммит
c7871d384a
|
@ -184,13 +184,13 @@ ThreadMain(void*)
|
|||
timestamp == lastTimestamp &&
|
||||
gTimeout > 0) {
|
||||
++waitCount;
|
||||
if (waitCount == 2) {
|
||||
if (waitCount >= 2) {
|
||||
#ifdef REPORT_CHROME_HANGS
|
||||
GetChromeHangReport(stack);
|
||||
#else
|
||||
int32_t delay =
|
||||
int32_t(PR_IntervalToSeconds(now - timestamp));
|
||||
if (delay > gTimeout) {
|
||||
if (delay >= gTimeout) {
|
||||
MonitorAutoUnlock unlock(*gMonitor);
|
||||
Crash();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче