| Index: base/watchdog.cc
|
| ===================================================================
|
| --- base/watchdog.cc (revision 11556)
|
| +++ base/watchdog.cc (working copy)
|
| @@ -109,7 +109,10 @@
|
| TimeTicks last_alarm_time = TimeTicks::Now();
|
| watchdog_->Alarm(); // Set a break point here to debug on alarms.
|
| TimeDelta last_alarm_delay = TimeTicks::Now() - last_alarm_time;
|
| - if (last_alarm_delay > TimeDelta::FromMilliseconds(2)) {
|
| + // Normally, a threshold of 2ms works here, but 10x higher
|
| + // threshold needed to reliably pass WatchdogTest.AlarmTest
|
| + // under valgrind on an old 3.4GHz Pentium 4. Use 15x for margin.
|
| + if (last_alarm_delay > TimeDelta::FromMilliseconds(30)) {
|
| // Ignore race of two alarms/breaks going off at roughly the same time.
|
| AutoLock static_lock(static_lock_);
|
| // This was a real debugger break.
|
|
|