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

Issue 968103002: Do not try to open DB in SessionStorageDatabase::DeleteNamespace() (Closed)

Created:
5 years, 9 months ago by hashimoto
Modified:
5 years, 9 months ago
Reviewers:
michaeln, marja
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not try to open DB in SessionStorageDatabase::DeleteNamespace() DeleteNamespace() is called during shutdown (in a call chain: DOMStorageSession::~DOMStorageSession() -> DOMStorageContextImpl::DeleteSessionNamespace() -> SessionStorageDatabase::DeleteNamespace()). Trying to open DB during shutdown causes unnecessary disk access, and it results in slowing down Chrome shutdown. On Chrome OS, this is observed as a crash because Chrome gets aborted when it cannot finish shutdown quickly. (http://crbug.com/418627) BUG=462500 Committed: https://crrev.com/36f040abc634e7c3bb41357c423b566d53c2072a Cr-Commit-Position: refs/heads/master@{#318840}

Patch Set 1 #

Patch Set 2 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M content/browser/dom_storage/session_storage_database.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
hashimoto
Could anyone (michaeln@ or marja@) look at this? IIUC there is no need to open ...
5 years, 9 months ago (2015-03-02 10:16:47 UTC) #2
marja
On 2015/03/02 10:16:47, hashimoto wrote: > Could anyone (michaeln@ or marja@) look at this? > ...
5 years, 9 months ago (2015-03-02 10:39:04 UTC) #3
hashimoto
On 2015/03/02 10:39:04, marja wrote: > On 2015/03/02 10:16:47, hashimoto wrote: > > Could anyone ...
5 years, 9 months ago (2015-03-02 10:47:55 UTC) #4
marja
Ah, that's true, for scavenging it should be open already. Now that I re-read your ...
5 years, 9 months ago (2015-03-02 10:54:39 UTC) #5
hashimoto
On 2015/03/02 10:54:39, marja wrote: > Ah, that's true, for scavenging it should be open ...
5 years, 9 months ago (2015-03-02 11:17:21 UTC) #6
marja
LGTM, but can you double-check w/ michaeln@ that this is OK. (It has been a ...
5 years, 9 months ago (2015-03-02 11:19:02 UTC) #7
michaeln
lgtm 2
5 years, 9 months ago (2015-03-02 18:57:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/968103002/20001
5 years, 9 months ago (2015-03-03 04:02:21 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-03 05:07:04 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 05:08:03 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/36f040abc634e7c3bb41357c423b566d53c2072a
Cr-Commit-Position: refs/heads/master@{#318840}

Powered by Google App Engine
This is Rietveld 408576698