summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 18:30:07 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-27 18:30:07 +0000
commit578cd613b584616bf21c24571005887adf681fdf (patch)
tree2d182e73e503546b5797399b9658a8b2e7c50a90 /content
parent64796c3b947aa216b8ca2e49fc26523f6589fc7e (diff)
downloadchromium_src-578cd613b584616bf21c24571005887adf681fdf.zip
chromium_src-578cd613b584616bf21c24571005887adf681fdf.tar.gz
chromium_src-578cd613b584616bf21c24571005887adf681fdf.tar.bz2
Turn off optimization for ChildProcessLauncher::Context::TerminateInternal.
This is to try and get more information about a crash. BUG=81449 Review URL: http://codereview.chromium.org/6976042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/child_process_launcher.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 5d3888e..a812b26 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -236,6 +236,13 @@ class ChildProcessLauncher::Context
process_.SetProcessBackgrounded(background);
}
+// TODO(apatrick): Remove this ASAP. http://crbog.com/81449 shows that this is
+// called before later calling null. Disable optimization to try and get more
+// information about what happened here.
+#if defined(OS_WIN)
+#pragma optimize("", off)
+#endif
+
static void TerminateInternal(
#if defined(OS_LINUX)
bool zygote,
@@ -261,6 +268,10 @@ class ChildProcessLauncher::Context
process.Close();
}
+#if defined(OS_WIN)
+#pragma optimize("", on)
+#endif
+
Client* client_;
BrowserThread::ID client_thread_id_;
base::Process process_;