From 578cd613b584616bf21c24571005887adf681fdf Mon Sep 17 00:00:00 2001 From: "apatrick@chromium.org" Date: Fri, 27 May 2011 18:30:07 +0000 Subject: 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 --- content/browser/child_process_launcher.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'content') 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_; -- cgit v1.1