diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 02:04:19 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 02:04:19 +0000 |
commit | c75da645edbe00944e180a3868a7da459d9852ca (patch) | |
tree | ce8a96e6f7bb1c81fae157c083af67f296682ddb /net/url_request/url_request_http_job.cc | |
parent | a6c3c9aabb69c72ed6409686680ee0bb68f23108 (diff) | |
download | chromium_src-c75da645edbe00944e180a3868a7da459d9852ca.zip chromium_src-c75da645edbe00944e180a3868a7da459d9852ca.tar.gz chromium_src-c75da645edbe00944e180a3868a7da459d9852ca.tar.bz2 |
Add debug info to track a crash when sleeping.
BUG=31723
TEST=none
Review URL: http://codereview.chromium.org/560039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_http_job.cc')
-rw-r--r-- | net/url_request/url_request_http_job.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 15b3373..25b0f33 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -569,12 +569,23 @@ void URLRequestHttpJob::NotifyHeadersComplete() { URLRequestJob::NotifyHeadersComplete(); } +#if defined(OS_WIN) +#pragma optimize("", off) +#pragma warning(disable:4748) +#endif void URLRequestHttpJob::DestroyTransaction() { - DCHECK(transaction_.get()); + CHECK(transaction_.get()); + // TODO(rvargas): remove this after finding the cause for bug 31723. + char local_obj[sizeof(*this)]; + memcpy(local_obj, this, sizeof(local_obj)); transaction_.reset(); response_info_ = NULL; } +#if defined(OS_WIN) +#pragma warning(default:4748) +#pragma optimize("", on) +#endif void URLRequestHttpJob::StartTransaction() { // NOTE: This method assumes that request_info_ is already setup properly. |