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

Issue 12047075: Fix race condition that occurs if ResourceContext::SetUserData is called on the IO thread before In… (Closed)

Created:
7 years, 11 months ago by jam
Modified:
7 years, 11 months ago
Reviewers:
awong
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix race condition that occurs if ResourceContext::SetUserData is called on the IO thread before InitializeResourceContext is called on the UI thread. We don't see this now because we don't set user data on the IO thread at initialization. In https://codereview.chromium.org/12049052/ I encountered this when I tried to set user data on the IO thread. The fix is to ensure that InitializeResourceContext is called before ResourceContext is used on the IO thread. BUG=169170 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178598

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M content/browser/storage_partition_impl_map.cc View 2 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jam
7 years, 11 months ago (2013-01-24 07:27:09 UTC) #1
awong
LGTM w/ nit Can you add to the comment above that moving this into Get() ...
7 years, 11 months ago (2013-01-24 17:12:09 UTC) #2
jam
7 years, 11 months ago (2013-01-24 17:16:14 UTC) #3
On 2013/01/24 17:12:09, awong wrote:
> LGTM w/ nit
> 
> Can you add to the comment above that moving this into Get() before
> partitions_[] is set causes reentrency?

sure

Powered by Google App Engine
This is Rietveld 408576698