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

Issue 10919137: SupportsUserData is not thread safe (Closed)

Created:
8 years, 3 months ago by joth
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, Jói
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

SupportsUserData is not thread safe Lets ensure none of its usages are unsafe. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155794

Patch Set 1 #

Patch Set 2 : fix build #

Patch Set 3 : fixed indexeddb test #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -7 lines) Patch
M base/supports_user_data.h View 3 chunks +9 lines, -0 lines 0 comments Download
M base/supports_user_data.cc View 2 chunks +14 lines, -2 lines 5 comments Download
M content/browser/in_process_webkit/indexed_db_browsertest.cc View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M content/browser/resource_context_impl.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
joth
Hi Avi, just copying you in on this as an FYI -- I stumbled across ...
8 years, 3 months ago (2012-09-08 17:24:10 UTC) #1
Avi (use Gerrit)
Yikes! 1. Nice catch; the SupportsUserData code LGTM 2. I'm adding some reviewers and some ...
8 years, 3 months ago (2012-09-08 17:33:51 UTC) #2
Randy Smith (Not in Mondays)
Downloads code only uses this on the UI thread; we're ok. LGTM.
8 years, 3 months ago (2012-09-08 17:43:31 UTC) #3
joth
Thanks. Added Darin for base/ review. http://codereview.chromium.org/10919137/diff/9002/base/supports_user_data.cc File base/supports_user_data.cc (right): http://codereview.chromium.org/10919137/diff/9002/base/supports_user_data.cc#newcode10 base/supports_user_data.cc:10: // Harmless to ...
8 years, 3 months ago (2012-09-08 21:33:41 UTC) #4
Avi (use Gerrit)
http://codereview.chromium.org/10919137/diff/9002/base/supports_user_data.cc File base/supports_user_data.cc (right): http://codereview.chromium.org/10919137/diff/9002/base/supports_user_data.cc#newcode10 base/supports_user_data.cc:10: // Harmless to construct on a different thread to ...
8 years, 3 months ago (2012-09-09 00:03:58 UTC) #5
darin (slow to review)
On 2012/09/09 00:03:58, Avi wrote: > http://codereview.chromium.org/10919137/diff/9002/base/supports_user_data.cc > File base/supports_user_data.cc (right): > > http://codereview.chromium.org/10919137/diff/9002/base/supports_user_data.cc#newcode10 > ...
8 years, 3 months ago (2012-09-10 06:20:23 UTC) #6
Avi (use Gerrit)
Good point. pthread mutexes apparently guarantee a memory barrier. SLGTM. Still freaks me out that ...
8 years, 3 months ago (2012-09-10 14:17:34 UTC) #7
joth
On 2012/09/10 14:17:34, Avi wrote: > Good point. pthread mutexes apparently guarantee a memory barrier. ...
8 years, 3 months ago (2012-09-10 16:26:58 UTC) #8
darin (slow to review)
LGTM for src/base/
8 years, 3 months ago (2012-09-10 16:40:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joth@chromium.org/10919137/9002
8 years, 3 months ago (2012-09-10 16:54:50 UTC) #10
commit-bot: I haz the power
8 years, 3 months ago (2012-09-10 19:18:56 UTC) #11
Change committed as 155794

Powered by Google App Engine
This is Rietveld 408576698