Bug 867313: 'crash on hang' doesn't always trigger. r=ehsan

This commit is contained in:
Vladan Djeric 2013-04-30 18:39:16 -04:00
Родитель d04b8f699b
Коммит c7871d384a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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();
}