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

Issue 851013003: Make SimpleCache creation threadsafe. (Closed)

Created:
5 years, 11 months ago by mmenke
Modified:
5 years, 10 months ago
Reviewers:
pasko, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, mef
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SimpleCache creation threadsafe. It was using a single global worker thread pool in a non-threadsafe manner. This imposed the restriction that all instances of SimpleCache must be initialized on a single thread, or weird things may, in very rare and unlikely cases, occur. BUG=442321 Committed: https://crrev.com/f233a2c48951a4f0e246773d61465052ab230ca9 Cr-Commit-Position: refs/heads/master@{#317071}

Patch Set 1 #

Patch Set 2 : Remove bonus header #

Patch Set 3 : Sync #

Patch Set 4 : leakiness #

Total comments: 2

Patch Set 5 : merge and git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -14 lines) Patch
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 3 4 4 chunks +23 lines, -14 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
mmenke
mef: FYI
5 years, 11 months ago (2015-01-14 21:47:06 UTC) #2
mmenke
Hrm...looks like I broke something. Tests failing despite claiming they pass...I'll look into it when ...
5 years, 11 months ago (2015-01-14 23:02:01 UTC) #3
gavinp
On 2015/01/14 23:02:01, mmenke wrote: > Hrm...looks like I broke something. Tests failing despite claiming ...
5 years, 11 months ago (2015-01-15 18:09:59 UTC) #4
mmenke
On 2015/01/15 18:09:59, gavinp wrote: > On 2015/01/14 23:02:01, mmenke wrote: > > Hrm...looks like ...
5 years, 11 months ago (2015-01-15 18:53:38 UTC) #5
mmenke
On 2015/01/15 18:53:38, mmenke wrote: > On 2015/01/15 18:09:59, gavinp wrote: > > On 2015/01/14 ...
5 years, 11 months ago (2015-01-15 18:57:15 UTC) #6
mmenke
Gavin: Finally had time to look at it. Turns out LazyInstances aren't leaky by default. ...
5 years, 10 months ago (2015-02-02 17:21:09 UTC) #7
mmenke
Oops, forgot about this one.
5 years, 10 months ago (2015-02-18 22:17:37 UTC) #10
mmenke
Oops, forgot about this one.
5 years, 10 months ago (2015-02-18 22:17:38 UTC) #11
mmenke
[+pasko]: PTAL.
5 years, 10 months ago (2015-02-18 22:17:52 UTC) #12
pasko
I like the LazyInstance approach, seems like the path to less surprises for readers. More ...
5 years, 10 months ago (2015-02-19 12:09:13 UTC) #13
mmenke
Thanks! https://codereview.chromium.org/851013003/diff/60001/net/disk_cache/simple/simple_backend_impl.cc File net/disk_cache/simple/simple_backend_impl.cc (right): https://codereview.chromium.org/851013003/diff/60001/net/disk_cache/simple/simple_backend_impl.cc#newcode67 net/disk_cache/simple/simple_backend_impl.cc:67: base::FieldTrialList::FindFullName("SimpleCacheMaxThreads"); On 2015/02/19 12:09:13, pasko wrote: > I ...
5 years, 10 months ago (2015-02-19 16:53:07 UTC) #14
pasko
lgtm given bots pass, thank you
5 years, 10 months ago (2015-02-19 17:06:47 UTC) #15
mmenke
On 2015/02/19 17:06:47, pasko wrote: > lgtm given bots pass, thank you Thanks!
5 years, 10 months ago (2015-02-19 17:11:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/851013003/80001
5 years, 10 months ago (2015-02-19 17:12:53 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-19 17:43:07 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 17:43:30 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f233a2c48951a4f0e246773d61465052ab230ca9
Cr-Commit-Position: refs/heads/master@{#317071}

Powered by Google App Engine
This is Rietveld 408576698