Commit 80c2915f authored by rtenneti@chromium.org's avatar rtenneti@chromium.org

Force a crash of the browser if IO thread hasn't responded

3 times for the ping message and if only one other threads
has responded for a ping message.

BUG=82336
TEST=thread watcher unit tests
R=jar
Review URL: http://codereview.chromium.org/6990061

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86536 0039d316-1c4b-4281-b951-d872f2087c98
parent 060af37e
......@@ -269,10 +269,10 @@ void ThreadWatcher::GotNoResponse() {
// Crash the browser if IO thread hasn't responded atleast kUnresponsiveCount
// times and if the number of other threads is equal to 1. We picked 1 to
// reduce the number of crashes and to get some sample data.
// if (thread_id_ == BrowserThread::IO && no_of_responding_threads == 1) {
// int* crash = NULL;
// CHECK(crash++);
// }
if (thread_id_ == BrowserThread::IO && no_of_responding_threads == 1) {
int* crash = NULL;
CHECK(crash++);
}
hung_processing_complete_ = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment