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

Issue 9702059: Disk cache: Remove all non essential synchronization from the cache destructor. (Closed)

Created:
8 years, 9 months ago by rvargas (doing something else)
Modified:
8 years, 9 months ago
Reviewers:
gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Disk cache: Remove all non essential synchronization from the cache destructor. The default setting for unit tests is still to perform full synchronization so we make sure that all work is performed, and that there are no leaks. However, when not running unit tests, all in progress operations are simply dropped on the flor, so they should result in dirty entries for the next run. BUG=74623 TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=127826

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : Sans style #

Total comments: 14

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -73 lines) Patch
M net/disk_cache/backend_impl.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 4 3 chunks +16 lines, -2 lines 1 comment Download
M net/disk_cache/backend_unittest.cc View 1 2 3 4 6 chunks +80 lines, -5 lines 0 comments Download
M net/disk_cache/entry_impl.h View 1 2 3 4 chunks +8 lines, -2 lines 0 comments Download
M net/disk_cache/entry_impl.cc View 1 2 3 4 18 chunks +66 lines, -18 lines 0 comments Download
M net/disk_cache/file.h View 1 2 3 4 2 chunks +4 lines, -1 line 1 comment Download
M net/disk_cache/file_posix.cc View 1 2 3 4 4 chunks +9 lines, -3 lines 0 comments Download
M net/disk_cache/file_win.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M net/disk_cache/in_flight_backend_io.h View 6 chunks +14 lines, -4 lines 0 comments Download
M net/disk_cache/in_flight_backend_io.cc View 1 2 3 8 chunks +40 lines, -17 lines 0 comments Download
M net/disk_cache/in_flight_io.h View 4 chunks +11 lines, -6 lines 0 comments Download
M net/disk_cache/in_flight_io.cc View 1 2 3 5 chunks +22 lines, -7 lines 0 comments Download
M net/disk_cache/sparse_control.cc View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M net/disk_cache/storage_block.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M net/disk_cache/storage_block-inl.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
rvargas (doing something else)
8 years, 9 months ago (2012-03-15 01:14:50 UTC) #1
gavinp
I really like removing the namespace qualification on common objects, but I'd like that split ...
8 years, 9 months ago (2012-03-16 17:31:35 UTC) #2
rvargas (doing something else)
I was just fixing the style of the files I was touching (regressed with the ...
8 years, 9 months ago (2012-03-16 23:19:38 UTC) #3
gavinp
I didn't get all the way through this. This CL has serious crashing races that ...
8 years, 9 months ago (2012-03-18 00:35:26 UTC) #4
rvargas (doing something else)
Crashes _should_ be gone now. http://codereview.chromium.org/9702059/diff/11001/net/disk_cache/backend_impl.cc File net/disk_cache/backend_impl.cc (right): http://codereview.chromium.org/9702059/diff/11001/net/disk_cache/backend_impl.cc#newcode355 net/disk_cache/backend_impl.cc:355: if (user_flags_ & kNoRandom) ...
8 years, 9 months ago (2012-03-20 02:54:23 UTC) #5
gavinp
LGTM (with the one minor nit fixed); I like the way you fixed the races ...
8 years, 9 months ago (2012-03-20 15:40:08 UTC) #6
rvargas (doing something else)
8 years, 9 months ago (2012-03-20 18:52:17 UTC) #7
Thanks for the review.

I'm still running try runs and deciding when to check this in. :)

Powered by Google App Engine
This is Rietveld 408576698