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

Issue 12277004: Make SimpleEntryImpl::Close asynchronous. (Closed)

Created:
7 years, 10 months ago by gavinp
Modified:
7 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Make SimpleEntryImpl::Close asynchronous. Since only one entry operation can be in flight at once, it's safe to assume that if the IO thread Entry doesn't exist on completion that the sync entry should be deleted. This issue is downstream of https://codereview.chromium.org/12223075/ and should land after it. R=rvargas@chromium.org BUG=173392 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185104

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : remediate #

Total comments: 2

Patch Set 5 : rebase #

Total comments: 4

Patch Set 6 : remediation #

Total comments: 6

Patch Set 7 : remediate #

Total comments: 2

Patch Set 8 : remediation to randy's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -15 lines) Patch
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 6 6 chunks +18 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
gavinp
And the roll continues... https://codereview.chromium.org/12277004/diff/1/net/disk_cache/simple/simple_entry_impl.h File net/disk_cache/simple/simple_entry_impl.h (right): https://codereview.chromium.org/12277004/diff/1/net/disk_cache/simple/simple_entry_impl.h#newcode96 net/disk_cache/simple/simple_entry_impl.h:96: SimpleSynchronousEntry* sync_entry, Funny that this ...
7 years, 10 months ago (2013-02-15 15:56:56 UTC) #1
pasko-google - do not use
generally LG, best comments are always about comments. https://codereview.chromium.org/12277004/diff/3001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12277004/diff/3001/net/disk_cache/simple/simple_entry_impl.cc#newcode247 net/disk_cache/simple/simple_entry_impl.cc:247: // ...
7 years, 10 months ago (2013-02-15 17:08:51 UTC) #2
gavinp
Remediated. https://codereview.chromium.org/12277004/diff/3001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12277004/diff/3001/net/disk_cache/simple/simple_entry_impl.cc#newcode247 net/disk_cache/simple/simple_entry_impl.cc:247: // Since at most one PendingEntryOperation can exist ...
7 years, 10 months ago (2013-02-15 18:32:59 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/12277004/diff/9001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12277004/diff/9001/net/disk_cache/simple/simple_entry_impl.cc#newcode248 net/disk_cache/simple/simple_entry_impl.cc:248: // Since at present only one pending entry operation ...
7 years, 10 months ago (2013-02-15 23:00:23 UTC) #4
gavinp
+rdsmith Pasko, can you take another look? https://codereview.chromium.org/12277004/diff/9001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12277004/diff/9001/net/disk_cache/simple/simple_entry_impl.cc#newcode248 net/disk_cache/simple/simple_entry_impl.cc:248: // Since ...
7 years, 9 months ago (2013-02-25 23:02:28 UTC) #5
pasko-google - do not use
LGTM I think it is reasonable to have a more robust version with assumption that ...
7 years, 9 months ago (2013-02-26 00:38:19 UTC) #6
gavinp
Remediated! rdsmith: ptal! https://codereview.chromium.org/12277004/diff/14001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12277004/diff/14001/net/disk_cache/simple/simple_entry_impl.cc#newcode248 net/disk_cache/simple/simple_entry_impl.cc:248: // Since at present only one ...
7 years, 9 months ago (2013-02-26 16:22:04 UTC) #7
Randy Smith (Not in Mondays)
Quick high level question: What does an issue entitled "Blank Page displays for a moment ...
7 years, 9 months ago (2013-02-26 18:26:05 UTC) #8
Randy Smith (Not in Mondays)
Thank you for the opportunity to learn more about the simple cache; I hope you ...
7 years, 9 months ago (2013-02-26 18:47:58 UTC) #9
gavinp
Thanks Randy. I fixed the bug number, too. https://codereview.chromium.org/12277004/diff/19001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (left): https://codereview.chromium.org/12277004/diff/19001/net/disk_cache/simple/simple_entry_impl.cc#oldcode94 net/disk_cache/simple/simple_entry_impl.cc:94: DCHECK(synchronous_entry_); ...
7 years, 9 months ago (2013-02-26 21:00:33 UTC) #10
Randy Smith (Not in Mondays)
LGTM; I'm comfortable you understand my points below, and I think your judgement will be ...
7 years, 9 months ago (2013-02-26 21:13:11 UTC) #11
gavinp
Thanks for the review Randy, and thanks for taking the time to read this code. ...
7 years, 9 months ago (2013-02-27 21:50:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/12277004/25002
7 years, 9 months ago (2013-02-27 22:20:09 UTC) #13
commit-bot: I haz the power
7 years, 9 months ago (2013-02-28 01:59:11 UTC) #14
Message was sent while issue was closed.
Change committed as 185104

Powered by Google App Engine
This is Rietveld 408576698