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

Issue 12226095: Make synchronous methods on disk_cache::SimpleEntryImpl() reentrant. (Closed)

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

Description

Make synchronous methods on disk_cache::SimpleEntryImpl() reentrant. For passing browser tests and unit tests, it turns out that the synchronous operations on disk_cache::Entry are called quite a bit. As I was trying to get us to the point that this cache can pass browser tests, I found this was necessary. Note: this CL is based on https://codereview.chromium.org/12192005/ (Add simple cache backend) , and must land after it. This CL is the basis of https://codereview.chromium.org/12223075/ (Make Doom asynchronous), and so it must land before that issue. R=rvargas@chromium.org, felipeg@chromium.org, pasko@chromium.org, willchan@chromium.org BUG=173392 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184501

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase only #

Patch Set 3 : add TODO(felipeg) #

Total comments: 2

Patch Set 4 : remove bad blank line #

Total comments: 1

Patch Set 5 : rebase #

Patch Set 6 : fix bad NULL #

Patch Set 7 : merged, and clear to land #

Patch Set 8 : rebase & clear to land #

Patch Set 9 : rebase #

Patch Set 10 : on top of trunk, ready to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -27 lines) Patch
M net/disk_cache/simple/simple_disk_format.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 3 chunks +20 lines, -15 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 2 3 4 5 6 7 8 7 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
gavinp
PTAL. This is downstream of the (still in review) simple backend CL.
7 years, 10 months ago (2013-02-11 20:10:42 UTC) #1
pasko-google - do not use
lgtm https://codereview.chromium.org/12226095/diff/1/net/disk_cache/simple/simple_disk_format.h File net/disk_cache/simple/simple_disk_format.h (right): https://codereview.chromium.org/12226095/diff/1/net/disk_cache/simple/simple_disk_format.h#newcode17 net/disk_cache/simple/simple_disk_format.h:17: static const int kSimpleEntryFileCount = 3; nit: a ...
7 years, 10 months ago (2013-02-12 14:15:10 UTC) #2
felipeg
https://chromiumcodereview.appspot.com/12226095/diff/1/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (left): https://chromiumcodereview.appspot.com/12226095/diff/1/net/disk_cache/simple/simple_entry_impl.cc#oldcode219 net/disk_cache/simple/simple_entry_impl.cc:219: return synchronous_entry_->last_used(); If we never set synchronous_entry_ to NULL ...
7 years, 10 months ago (2013-02-12 14:47:48 UTC) #3
pasko-google - do not use
https://chromiumcodereview.appspot.com/12226095/diff/1/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (left): https://chromiumcodereview.appspot.com/12226095/diff/1/net/disk_cache/simple/simple_entry_impl.cc#oldcode219 net/disk_cache/simple/simple_entry_impl.cc:219: return synchronous_entry_->last_used(); On 2013/02/12 14:47:48, felipeg1 wrote: > If ...
7 years, 10 months ago (2013-02-12 15:07:12 UTC) #4
felipeg
I agree that data races (even benign) is not a good design choice. But keeping ...
7 years, 10 months ago (2013-02-12 15:13:36 UTC) #5
gavinp
https://codereview.chromium.org/12226095/diff/10002/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12226095/diff/10002/net/disk_cache/simple/simple_entry_impl.cc#newcode287 net/disk_cache/simple/simple_entry_impl.cc:287: // filesystems not being accurate. I am, like pasko, ...
7 years, 10 months ago (2013-02-12 16:17:49 UTC) #6
felipeg
lgtm https://codereview.chromium.org/12226095/diff/10002/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12226095/diff/10002/net/disk_cache/simple/simple_entry_impl.cc#newcode287 net/disk_cache/simple/simple_entry_impl.cc:287: // filesystems not being accurate. On 2013/02/12 16:17:49, ...
7 years, 10 months ago (2013-02-12 16:23:08 UTC) #7
rvargas (doing something else)
lgtm https://codereview.chromium.org/12226095/diff/15/net/disk_cache/simple/simple_entry_impl.h File net/disk_cache/simple/simple_entry_impl.h (right): https://codereview.chromium.org/12226095/diff/15/net/disk_cache/simple/simple_entry_impl.h#newcode104 net/disk_cache/simple/simple_entry_impl.h:104: void SetSynchronousData(); I would suggest a different name ...
7 years, 10 months ago (2013-02-13 03:10:36 UTC) #8
rvargas (doing something else)
And please point to the relevant bug.
7 years, 10 months ago (2013-02-13 03:12:43 UTC) #9
gavinp
7 years, 10 months ago (2013-02-25 22:40:35 UTC) #10
Message was sent while issue was closed.
Committed patchset #10 manually as r184501 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698