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

Issue 245036: Make sudden termination into a counter.... (Closed)

Created:
11 years, 2 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, brettw, jam
Visibility:
Public.

Description

Make sudden termination into a counter. We were incorrectly interpreting enableSuddenTermination to mean "enable sudden termination". Really it should just decrement a counter, and we should only enable sudden termination when that counter reaches 0. Related to, but not the fix for, http://crbug.com/5638 This may have been causing memory corruption due to shutting down the renderer process while writing to a storage area or icon database (although honestly I don't actually know if we even use those parts of webkit). Also, add a ui test that fails before this patch and succeeds with this patch. BUG=none TEST=sudden termination still works on a simple page Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27831

Patch Set 1 #

Patch Set 2 : don't drop below 0 #

Total comments: 3

Patch Set 3 : '' #

Total comments: 7

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : set svn eol style #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -0 lines) Patch
M chrome/chrome.gyp View 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/fast_shutdown/on_before_unloader.html View 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/fast_shutdown/on_unloader.html View 4 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/ui/fast_shutdown_uitest.cc View 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Evan Stade
11 years, 2 months ago (2009-09-29 01:00:18 UTC) #1
jam
http://codereview.chromium.org/245036/diff/2001/3001 File chrome/renderer/renderer_webkitclient_impl.cc (right): http://codereview.chromium.org/245036/diff/2001/3001#newcode136 Line 136: sudden_termination_disables_ = std::max(--sudden_termination_disables_, 0); why is the std::max ...
11 years, 2 months ago (2009-09-29 02:07:41 UTC) #2
jam
also, can you write a regression test for this?
11 years, 2 months ago (2009-09-29 02:08:12 UTC) #3
Evan Stade
There's no easy way to write a test for this; the only test I would ...
11 years, 2 months ago (2009-09-29 03:42:02 UTC) #4
darin (slow to review)
On 2009/09/29 03:42:02, Evan Stade wrote: > There's no easy way to write a test ...
11 years, 2 months ago (2009-09-29 06:10:49 UTC) #5
jam
Darin's suggestion about how to test this is reasonable, I think we really need tests ...
11 years, 2 months ago (2009-09-29 17:17:55 UTC) #6
Evan Stade
> Really? Can't you create a UI test that opens two tabs, the second spawned ...
11 years, 2 months ago (2009-09-29 18:22:05 UTC) #7
Evan Stade
ui test added
11 years, 2 months ago (2009-09-29 22:04:26 UTC) #8
darin (slow to review)
LG other than: http://codereview.chromium.org/245036/diff/5002/5007 File chrome/test/ui/fast_shutdown_uitest.cc (right): http://codereview.chromium.org/245036/diff/5002/5007#newcode21 Line 21: TEST_F(FastShutdownBrowserTest, FastTermination) { nit: it ...
11 years, 2 months ago (2009-09-29 22:44:43 UTC) #9
jam
http://codereview.chromium.org/245036/diff/5002/5007 File chrome/test/ui/fast_shutdown_uitest.cc (right): http://codereview.chromium.org/245036/diff/5002/5007#newcode1 Line 1: // Copyright (c) 2009 The Chromium Authors. All ...
11 years, 2 months ago (2009-09-29 22:50:02 UTC) #10
Evan Stade
http://codereview.chromium.org/245036/diff/5002/5007 File chrome/test/ui/fast_shutdown_uitest.cc (right): http://codereview.chromium.org/245036/diff/5002/5007#newcode18 Line 18: // This tests for a previous error where ...
11 years, 2 months ago (2009-09-29 23:12:27 UTC) #11
Evan Stade
> http://codereview.chromium.org/245036/diff/5002/5007#newcode1 > Line 1: // Copyright (c) 2009 The Chromium Authors. All rights reserved. ...
11 years, 2 months ago (2009-09-30 21:00:45 UTC) #12
Evan Stade
ping.
11 years, 2 months ago (2009-10-01 00:30:36 UTC) #13
darin (slow to review)
11 years, 2 months ago (2009-10-01 04:20:03 UTC) #14
LGTM

Powered by Google App Engine
This is Rietveld 408576698