rva...@chromium.org
unread,May 16, 2012, 4:06:27 PM5/16/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to will...@chromium.org, chromium...@chromium.org, erikw...@chromium.org, bret...@chromium.org
Reviewers: willchan,
Description:
Base: Crash the process if we are not able to join threads.
BUG=127931
TEST=none
Please review this at
https://chromiumcodereview.appspot.com/10398060/
SVN Base: svn://
svn.chromium.org/chrome/trunk/src/
Affected files:
M base/threading/platform_thread_win.cc
Index: base/threading/platform_thread_win.cc
===================================================================
--- base/threading/platform_thread_win.cc (revision 137046)
+++ base/threading/platform_thread_win.cc (working copy)
@@ -181,7 +181,13 @@
// Wait for the thread to exit. It should already have terminated but
make
// sure this assumption is valid.
DWORD result = WaitForSingleObject(thread_handle, INFINITE);
- DCHECK_EQ(WAIT_OBJECT_0, result);
+ if (result != WAIT_OBJECT_0) {
+ // Debug info for bug 127931.
+ DWORD error = GetLastError();
+ debug::Alias(&error);
+ debug::Alias(&thread_handle);
+ CHECK(false) << "Failed to wait for thread";
+ }
CloseHandle(thread_handle);
}