Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Issue 7725005: Fix for a memory corruption. (Closed)

Created:
9 years, 3 months ago by MAD
Modified:
9 years, 3 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix for a memory corruption. As identified by http://crbug.com/90867, we sometimes leaked render view hosts by overwriting them in the swapped out map of the render view host manager. This should not happen (two different hosts with the same instance id) and will eventually be fixed, but in the mean time this CL recovers from that problem and prevent the leak, and also the memory corruptions that were caused by it. The memory corruption were caused by the fact that the leaked host would not be told when their delegate_ would die and might try to call them post-mortem. BUG=90867 TEST=RenderViewHostManagerTest.LeakingRenderViewHosts Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98249

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -4 lines) Patch
M content/browser/renderer_host/render_view_host_manager_browsertest.cc View 1 2 2 chunks +89 lines, -0 lines 0 comments Download
M content/browser/tab_contents/render_view_host_manager.cc View 1 2 chunks +26 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
MAD
How about this? The fails without the fix and succeeds with it, of course... :-) ...
9 years, 3 months ago (2011-08-24 20:32:50 UTC) #1
Charlie Reis
LGTM http://codereview.chromium.org/7725005/diff/1/content/browser/renderer_host/render_view_host_manager_browsertest.cc File content/browser/renderer_host/render_view_host_manager_browsertest.cc (right): http://codereview.chromium.org/7725005/diff/1/content/browser/renderer_host/render_view_host_manager_browsertest.cc#newcode332 content/browser/renderer_host/render_view_host_manager_browsertest.cc:332: render_view_host()); Maybe add an EXPECT_EQ(3, rvh_observers.GetNumObservers()) here? http://codereview.chromium.org/7725005/diff/1/content/browser/tab_contents/render_view_host_manager.cc ...
9 years, 3 months ago (2011-08-24 21:18:52 UTC) #2
MAD
Cool... Thanks! Done! BYE MAD http://codereview.chromium.org/7725005/diff/1/content/browser/renderer_host/render_view_host_manager_browsertest.cc File content/browser/renderer_host/render_view_host_manager_browsertest.cc (right): http://codereview.chromium.org/7725005/diff/1/content/browser/renderer_host/render_view_host_manager_browsertest.cc#newcode332 content/browser/renderer_host/render_view_host_manager_browsertest.cc:332: render_view_host()); On 2011/08/24 21:18:52, ...
9 years, 3 months ago (2011-08-24 21:31:07 UTC) #3
commit-bot: I haz the power
Presubmit check for 7725005-8001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 3 months ago (2011-08-25 14:11:53 UTC) #4
commit-bot: I haz the power
Presubmit check for 7725005-8001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 3 months ago (2011-08-25 14:16:42 UTC) #5
MAD
I need an owner's LGTM... Anyone? Anyone?... :-) Thanks! BYE MAD
9 years, 3 months ago (2011-08-25 14:19:55 UTC) #6
Avi (use Gerrit)
Owner LGTM.
9 years, 3 months ago (2011-08-25 14:35:20 UTC) #7
commit-bot: I haz the power
9 years, 3 months ago (2011-08-25 16:57:36 UTC) #8
Change committed as 98249

Powered by Google App Engine
This is Rietveld 408576698