diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 00:05:55 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-06 00:05:55 +0000 |
commit | b109340fcfc69005bbd0844509b0f61df7139064 (patch) | |
tree | 22156690febc5f127d5fe28f8565544ff227ed67 /content/gpu | |
parent | 5849ee43fb526fd03016a52dc66b937dfb964ad5 (diff) | |
download | chromium_src-b109340fcfc69005bbd0844509b0f61df7139064.zip chromium_src-b109340fcfc69005bbd0844509b0f61df7139064.tar.gz chromium_src-b109340fcfc69005bbd0844509b0f61df7139064.tar.bz2 |
Crash GPU process on watchdog timeout.
We can temporarily do this to see what the causes of GPU hangs are.
BUG=144221
Review URL: https://chromiumcodereview.appspot.com/10986079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/gpu')
-rw-r--r-- | content/gpu/gpu_watchdog_thread.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/gpu/gpu_watchdog_thread.cc b/content/gpu/gpu_watchdog_thread.cc index 5d6c088..484486f 100644 --- a/content/gpu/gpu_watchdog_thread.cc +++ b/content/gpu/gpu_watchdog_thread.cc @@ -198,8 +198,8 @@ void GpuWatchdogThread::DeliberatelyTerminateToRecoverFromHang() { LOG(ERROR) << "The GPU process hung. Terminating after " << timeout_.InMilliseconds() << " ms."; - base::Process current_process(base::GetCurrentProcessHandle()); - current_process.Terminate(content::RESULT_CODE_HUNG); + // Deliberately crash the process to make a crash dump. + *((volatile int*)0) = 0x1337; terminated = true; } |