summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_frame_impl.cc
diff options
context:
space:
mode:
authorlfg <lfg@chromium.org>2015-03-17 17:13:58 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-18 00:14:29 +0000
commitf032c0d065a5387a2e490e45bbec046e5a1bda61 (patch)
treebe75f7476304c4577009874a2199a0e00430f7c9 /content/renderer/render_frame_impl.cc
parent686075bc7bc8a36db87da7824544e0ccc512bf56 (diff)
downloadchromium_src-f032c0d065a5387a2e490e45bbec046e5a1bda61.zip
chromium_src-f032c0d065a5387a2e490e45bbec046e5a1bda61.tar.gz
chromium_src-f032c0d065a5387a2e490e45bbec046e5a1bda61.tar.bz2
Store the callstack of the IPC sender of ViewMsg_New.
This is a temporary change to help track down the bug below, where we try to create a second RenderView with the same routing id in the same process. This CL fixes the previous CL where some of the data got optimized out by the compiler. BUG=464633 Review URL: https://codereview.chromium.org/1006003005 Cr-Commit-Position: refs/heads/master@{#321024}
Diffstat (limited to 'content/renderer/render_frame_impl.cc')
-rw-r--r--content/renderer/render_frame_impl.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 6697cc4..348ed07 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -692,9 +692,15 @@ RenderFrameImpl::RenderFrameImpl(RenderViewImpl* render_view, int routing_id)
stack_debug_info[i] = debug_info[i];
for (int i = 0; i < duplicate_size; i++)
duplicate_stack_debug_info[i] = duplicate_debug_info[i];
- (void) stack_debug_info;
- (void) duplicate_stack_debug_info;
CHECK(result.second) << "Inserting a duplicate item.";
+ // Make sure the variable is stored on the stack and use it so that the
+ // compiler won't optimize it out.
+ base::debug::Alias(&stack_debug_info);
+ base::debug::Alias(&duplicate_stack_debug_info);
+ for (int i = 0; i < size; i++)
+ LOG(ERROR) << stack_debug_info[i];
+ for (int i = 0; i < duplicate_size; i++)
+ LOG(ERROR) << duplicate_stack_debug_info[i];
}
RenderThread::Get()->AddRoute(routing_id_, this);