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

Issue 2672983004: Make disk_cache::TraceObject RefCountedThreadSafe instead of RefCounted (Closed)

Created:
3 years, 10 months ago by tzik
Modified:
3 years, 10 months ago
Reviewers:
cbentzel, jkarlin, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make disk_cache::TraceObject RefCountedThreadSafe instead of RefCounted disk_cache::TraceObject has non-thread-safe ref count. Its AddRef() is called on a background thread in disk_cache::BackendImpl::SyncInit(), and Release() is called on the IO thread on disk_cache::Backend destruction. So, if a Backend instance is initialized while another Backend instance is being destroyed, these ref count manipulations cause data race. BUG=688072 Review-Url: https://codereview.chromium.org/2672983004 Cr-Commit-Position: refs/heads/master@{#450917} Committed: https://chromium.googlesource.com/chromium/src/+/704e5153f057ce179dc44ff6b4f6a0d565d886e4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M net/disk_cache/blockfile/trace.h View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
tzik
PTAL
3 years, 10 months ago (2017-02-03 19:18:47 UTC) #5
tzik
jkarlin: Could you take a look?
3 years, 10 months ago (2017-02-09 23:00:05 UTC) #9
jkarlin
lgtm but you'll need a net/ owner (e.g., gavinp) to sign off as well.
3 years, 10 months ago (2017-02-13 17:33:55 UTC) #10
tzik
On 2017/02/13 17:33:55, jkarlin wrote: > lgtm but you'll need a net/ owner (e.g., gavinp) ...
3 years, 10 months ago (2017-02-14 09:06:48 UTC) #11
tzik
On 2017/02/13 17:33:55, jkarlin wrote: > lgtm but you'll need a net/ owner (e.g., gavinp) ...
3 years, 10 months ago (2017-02-14 09:13:48 UTC) #13
cbentzel
On 2017/02/14 09:13:48, tzik wrote: > On 2017/02/13 17:33:55, jkarlin wrote: > > lgtm but ...
3 years, 10 months ago (2017-02-14 18:30:32 UTC) #14
tzik
On 2017/02/14 18:30:32, cbentzel wrote: > On 2017/02/14 09:13:48, tzik wrote: > > On 2017/02/13 ...
3 years, 10 months ago (2017-02-15 06:13:39 UTC) #16
cbentzel
LGTM It is unclear to me if we actually need this class. It looks like ...
3 years, 10 months ago (2017-02-15 18:18:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672983004/1
3 years, 10 months ago (2017-02-16 00:47:10 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on ...
3 years, 10 months ago (2017-02-16 02:49:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672983004/1
3 years, 10 months ago (2017-02-16 04:01:22 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-16 04:39:31 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2672983004/1
3 years, 10 months ago (2017-02-16 07:09:32 UTC) #27
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 09:43:09 UTC) #30
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/704e5153f057ce179dc44ff6b4f6...

Powered by Google App Engine
This is Rietveld 408576698