summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 22:19:45 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 22:19:45 +0000
commit1882d05858db4de45c6427b26b9b3c7189a17606 (patch)
tree770135bcad3345c2f696e7089cbd4e5dcc734ca0 /content
parent73347bf7467d72c84997473489b5ab48e1c41a19 (diff)
downloadchromium_src-1882d05858db4de45c6427b26b9b3c7189a17606.zip
chromium_src-1882d05858db4de45c6427b26b9b3c7189a17606.tar.gz
chromium_src-1882d05858db4de45c6427b26b9b3c7189a17606.tar.bz2
Crash if the render process fails to create its IO thread.
We are seeing some latent crashes that I believe are a consequence of this earlier failure. So this change should help clarify what is happening. A next step would be to determine the particular platform error that caused thread creation to fail. (However base::PlatformThread doesn't currently expose that). BUG=109302 Review URL: http://codereview.chromium.org/9122010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/child_process.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/content/common/child_process.cc b/content/common/child_process.cc
index 3ed0620..d72b8c0 100644
--- a/content/common/child_process.cc
+++ b/content/common/child_process.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -28,7 +28,9 @@ ChildProcess::ChildProcess()
DCHECK(!child_process_);
child_process_ = this;
- io_thread_.StartWithOptions(base::Thread::Options(MessageLoop::TYPE_IO, 0));
+ // We can't recover from failing to start the IO thread.
+ CHECK(io_thread_.StartWithOptions(
+ base::Thread::Options(MessageLoop::TYPE_IO, 0)));
}
ChildProcess::~ChildProcess() {