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

Issue 17816008: Disk cache: Introduce BlockBitmaps for V3. (Closed)

Created:
7 years, 6 months ago by rvargas (doing something else)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Disk cache: Introduce BlockBitmaps for V3. The new class encapsulates the group of headers/bitmaps in use by the backend. In other words, this class plays the role that BlockFiles plays for version 2 of the cache, but without performing any IO. BUG=241277 TEST=net_unittests R=gavinp@chromium.org, rdsmith@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223133

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Total comments: 24

Patch Set 4 : #

Total comments: 15

Patch Set 5 : #

Total comments: 46

Patch Set 6 : #

Patch Set 7 : Rebase #

Patch Set 8 : Remove dchecks #

Patch Set 9 : New BlockBitmaps description #

Total comments: 4

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -628 lines) Patch
M net/disk_cache/block_files.h View 1 2 3 4 5 6 7 8 9 3 chunks +26 lines, -9 lines 0 comments Download
M net/disk_cache/block_files.cc View 1 2 3 4 5 6 7 8 9 14 chunks +82 lines, -45 lines 0 comments Download
M net/disk_cache/disk_format_base.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/v3/block_bitmaps.h View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -34 lines 0 comments Download
M net/disk_cache/v3/block_bitmaps.cc View 1 2 3 4 5 6 7 8 9 2 chunks +76 lines, -230 lines 0 comments Download
M net/disk_cache/v3/block_bitmaps_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +30 lines, -310 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
rvargas (doing something else)
7 years, 6 months ago (2013-06-26 21:41:13 UTC) #1
gavinp
The most serious problem is about the magic constants 1 and 4. Otherwise, I think ...
7 years, 6 months ago (2013-06-27 07:06:17 UTC) #2
rvargas (doing something else)
As for testing... I'm having a hard time figuring out how to proceed from this ...
7 years, 5 months ago (2013-06-27 19:57:54 UTC) #3
gavinp
Thanks Ricardo. I hadn't seen the tests when I made my earlier comment; I'm sorry ...
7 years, 5 months ago (2013-06-28 21:47:45 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/17816008/diff/26002/net/disk_cache/block_files.cc File net/disk_cache/block_files.cc (right): https://codereview.chromium.org/17816008/diff/26002/net/disk_cache/block_files.cc#newcode275 net/disk_cache/block_files.cc:275: DCHECK(block_files_.size() >= kFirstAdditionalBlockFile); On 2013/06/28 21:47:45, gavinp wrote: > ...
7 years, 5 months ago (2013-07-11 19:54:55 UTC) #5
gavinp
+rdsmith Randy, I think me and Ricardo are talking past each other a bit or ...
7 years, 5 months ago (2013-07-15 18:23:35 UTC) #6
Randy Smith (Not in Mondays)
On 2013/07/15 18:23:35, gavinp wrote: > +rdsmith > > Randy, > > I think me ...
7 years, 5 months ago (2013-07-15 18:52:14 UTC) #7
Randy Smith (Not in Mondays)
If I'm understanding your separate points correctly, this sounds like a future / present conflict: ...
7 years, 5 months ago (2013-07-16 18:01:41 UTC) #8
gavinp
This effectively is the first review of BlockHeader, and should be treated as such. BlockHeader ...
7 years, 5 months ago (2013-07-16 18:18:33 UTC) #9
gavinp
Whoops: I'm writing not lgtm here just to undue my earlier accidental Ell Gee Tee ...
7 years, 5 months ago (2013-07-16 18:18:56 UTC) #10
rvargas (doing something else)
On 2013/07/16 18:01:41, rdsmith wrote: > If I'm understanding your separate points correctly, this sounds ...
7 years, 5 months ago (2013-07-17 03:04:20 UTC) #11
Randy Smith (Not in Mondays)
Quick heads up here that I won't be able to respond to this until this ...
7 years, 5 months ago (2013-07-17 12:44:12 UTC) #12
Randy Smith (Not in Mondays)
On 2013/07/17 03:04:20, rvargas wrote: > On 2013/07/16 18:01:41, rdsmith wrote: > > If I'm ...
7 years, 5 months ago (2013-07-18 01:04:59 UTC) #13
gavinp
On 2013/07/17 03:04:20, rvargas wrote: > On 2013/07/16 18:01:41, rdsmith wrote: > > If I'm ...
7 years, 5 months ago (2013-07-20 02:53:38 UTC) #14
gavinp
Just FYI: rdsmith, I'm blocking any response until after I've heard from you. Thanks.
7 years, 5 months ago (2013-07-20 02:54:25 UTC) #15
Randy Smith (Not in Mondays)
On 2013/07/20 02:54:25, gavinp wrote: > Just FYI: rdsmith, I'm blocking any response until after ...
7 years, 5 months ago (2013-07-20 12:16:16 UTC) #16
Randy Smith (Not in Mondays)
Ricardo: I've spent some time going over https://codereview.chromium.org/15203004 to understand the general shape of where ...
7 years, 5 months ago (2013-07-23 23:02:02 UTC) #17
rvargas (doing something else)
On 2013/07/23 23:02:02, rdsmith wrote: > Ricardo: I've spent some time going over > https://codereview.chromium.org/15203004 ...
7 years, 5 months ago (2013-07-24 02:21:06 UTC) #18
Randy Smith (Not in Mondays)
Gavin: Ricardo and I chatted for a bit this afternoon, and got to a place ...
7 years, 4 months ago (2013-07-30 22:31:58 UTC) #19
gavinp
On 2013/07/30 22:31:58, rdsmith wrote: > Gavin: Ricardo and I chatted for a bit this ...
7 years, 4 months ago (2013-07-31 19:09:26 UTC) #20
Randy Smith (Not in Mondays)
On 2013/07/31 19:09:26, gavinp wrote: > On 2013/07/30 22:31:58, rdsmith wrote: > > Gavin: Ricardo ...
7 years, 4 months ago (2013-07-31 22:30:58 UTC) #21
gavinp
On 2013/07/31 22:30:58, rdsmith wrote: > On 2013/07/31 19:09:26, gavinp wrote: > > On 2013/07/30 ...
7 years, 4 months ago (2013-08-05 15:12:13 UTC) #22
gavinp
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.cc File net/disk_cache/block_files.cc (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.cc#newcode199 net/disk_cache/block_files.cc:199: for (int i = 0; i < kMaxNumBlocks; i++) ...
7 years, 4 months ago (2013-08-05 17:06:15 UTC) #23
rvargas (doing something else)
New version uploaded. The last one is just rebasing to tot (no real changes) https://codereview.chromium.org/17816008/diff/26002/net/disk_cache/v3/block_bitmaps.cc ...
7 years, 4 months ago (2013-08-05 19:50:45 UTC) #24
Randy Smith (Not in Mondays)
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h File net/disk_cache/block_files.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h#newcode27 net/disk_cache/block_files.h:27: // Note that this class doesn't perform any file ...
7 years, 4 months ago (2013-08-05 20:23:48 UTC) #25
rvargas (doing something else)
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h File net/disk_cache/block_files.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h#newcode27 net/disk_cache/block_files.h:27: // Note that this class doesn't perform any file ...
7 years, 4 months ago (2013-08-05 21:03:01 UTC) #26
Randy Smith (Not in Mondays)
On 2013/08/05 21:03:01, rvargas wrote: > https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h > File net/disk_cache/block_files.h (right): > > https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h#newcode27 > ...
7 years, 4 months ago (2013-08-05 21:37:59 UTC) #27
rvargas (doing something else)
On 2013/08/05 21:37:59, rdsmith wrote: > On 2013/08/05 21:03:01, rvargas wrote: > > > https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h ...
7 years, 4 months ago (2013-08-05 21:40:47 UTC) #28
gavinp
https://codereview.chromium.org/17816008/diff/26002/net/disk_cache/v3/block_bitmaps.cc File net/disk_cache/v3/block_bitmaps.cc (right): https://codereview.chromium.org/17816008/diff/26002/net/disk_cache/v3/block_bitmaps.cc#newcode153 net/disk_cache/v3/block_bitmaps.cc:153: NOTREACHED(); On 2013/08/05 19:50:45, rvargas wrote: > On 2013/07/15 ...
7 years, 4 months ago (2013-08-06 01:11:02 UTC) #29
Randy Smith (Not in Mondays)
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h File net/disk_cache/block_files.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h#newcode27 net/disk_cache/block_files.h:27: // Note that this class doesn't perform any file ...
7 years, 4 months ago (2013-08-06 15:16:27 UTC) #30
Randy Smith (Not in Mondays)
On 2013/08/06 15:16:27, rdsmith wrote: > Just to make explicit what may be obvious to ...
7 years, 4 months ago (2013-08-07 19:46:54 UTC) #31
Randy Smith (Not in Mondays)
On 2013/08/07 19:46:54, rdsmith wrote: > On 2013/08/06 15:16:27, rdsmith wrote: > > Just to ...
7 years, 4 months ago (2013-08-07 19:59:49 UTC) #32
gavinp
On 2013/08/07 19:46:54, rdsmith wrote: > On 2013/08/06 15:16:27, rdsmith wrote: > > Just to ...
7 years, 4 months ago (2013-08-07 20:13:45 UTC) #33
rvargas (doing something else)
My apologies for not commenting on this thread before and letting you guys go on ...
7 years, 4 months ago (2013-08-08 02:50:00 UTC) #34
gavinp
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/v3/block_bitmaps.h File net/disk_cache/v3/block_bitmaps.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/v3/block_bitmaps.h#newcode17 net/disk_cache/v3/block_bitmaps.h:17: // This class handles the set of block-files open ...
7 years, 4 months ago (2013-08-08 03:04:45 UTC) #35
Randy Smith (Not in Mondays)
On 2013/08/08 02:50:00, rvargas wrote: > My apologies for not commenting on this thread before ...
7 years, 4 months ago (2013-08-09 18:54:20 UTC) #36
Randy Smith (Not in Mondays)
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/v3/block_bitmaps.h File net/disk_cache/v3/block_bitmaps.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/v3/block_bitmaps.h#newcode17 net/disk_cache/v3/block_bitmaps.h:17: // This class handles the set of block-files open ...
7 years, 4 months ago (2013-08-09 19:11:48 UTC) #37
rvargas (doing something else)
https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/v3/block_bitmaps.h File net/disk_cache/v3/block_bitmaps.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/v3/block_bitmaps.h#newcode17 net/disk_cache/v3/block_bitmaps.h:17: // This class handles the set of block-files open ...
7 years, 4 months ago (2013-08-09 19:53:40 UTC) #38
rvargas (doing something else)
On 2013/08/09 18:54:20, rdsmith wrote: > On 2013/08/08 02:50:00, rvargas wrote: > > My apologies ...
7 years, 4 months ago (2013-08-09 20:06:22 UTC) #39
Randy Smith (Not in Mondays)
On 2013/08/09 20:06:22, rvargas wrote: > On 2013/08/09 18:54:20, rdsmith wrote: > > On 2013/08/08 ...
7 years, 4 months ago (2013-08-12 14:51:35 UTC) #40
rvargas (doing something else)
Is there any pending item to land this CL?
7 years, 4 months ago (2013-08-24 02:24:43 UTC) #41
gavinp
I'm glad we talked through why it's OK to do IO on the IO thread ...
7 years, 3 months ago (2013-08-26 14:30:55 UTC) #42
Randy Smith (Not in Mondays)
Just in case you're waiting for me, here's my LGTM. Note that I've only done ...
7 years, 3 months ago (2013-09-03 19:09:27 UTC) #43
rvargas (doing something else)
thanks https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h File net/disk_cache/block_files.h (right): https://codereview.chromium.org/17816008/diff/5629499534213120/net/disk_cache/block_files.h#newcode32 net/disk_cache/block_files.h:32: explicit BlockHeader(MappedFile* file); On 2013/08/26 14:30:56, gavinp wrote: ...
7 years, 3 months ago (2013-09-11 02:49:52 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/17816008/184001
7 years, 3 months ago (2013-09-11 18:53:58 UTC) #45
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=77909
7 years, 3 months ago (2013-09-12 04:43:16 UTC) #46
rvargas (doing something else)
7 years, 3 months ago (2013-09-13 21:51:58 UTC) #47
Message was sent while issue was closed.
Committed patchset #10 manually as r223133 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698