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

Issue 1234213002: Fix data races on |SharedMemoryDataConsumerHandle::Context::notification_task_runner_| (Closed)

Created:
5 years, 5 months ago by hiroshige
Modified:
5 years, 5 months ago
Reviewers:
kinuko, yhirano
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix data races on |SharedMemoryDataConsumerHandle::Context::notification_task_runner_| Writes to |notification_task_runner_| are protected by |lock_| but reads to |notification_task_runner_| in NotifyInternal() and PostNotify() are not protected. This CL fixes the races by adding locks. BUG=480746 Committed: https://crrev.com/e1a55538db15f150f4195dde5c8598d9bcf998d9 Cr-Commit-Position: refs/heads/master@{#339008}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Add AssertAquired(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -42 lines) Patch
M content/child/shared_memory_data_consumer_handle.cc View 1 2 3 11 chunks +76 lines, -42 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
hiroshige
PTAL.
5 years, 5 months ago (2015-07-15 12:45:27 UTC) #2
yhirano
https://codereview.chromium.org/1234213002/diff/20001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1234213002/diff/20001/content/child/shared_memory_data_consumer_handle.cc#newcode294 content/child/shared_memory_data_consumer_handle.cc:294: if (needs_notification) { I decoupled this section because I ...
5 years, 5 months ago (2015-07-15 13:30:09 UTC) #3
hiroshige
https://codereview.chromium.org/1234213002/diff/20001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1234213002/diff/20001/content/child/shared_memory_data_consumer_handle.cc#newcode294 content/child/shared_memory_data_consumer_handle.cc:294: if (needs_notification) { On 2015/07/15 13:30:09, yhirano wrote: > ...
5 years, 5 months ago (2015-07-15 21:35:40 UTC) #4
yhirano
Thanks, LGTM
5 years, 5 months ago (2015-07-16 01:40:35 UTC) #5
hiroshige
+kinuko@, could you take a look at as a content/ OWNER?
5 years, 5 months ago (2015-07-16 02:37:54 UTC) #7
kinuko
https://codereview.chromium.org/1234213002/diff/40001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1234213002/diff/40001/content/child/shared_memory_data_consumer_handle.cc#newcode287 content/child/shared_memory_data_consumer_handle.cc:287: context_->PostNotify(); If some methods of Context are assumed to ...
5 years, 5 months ago (2015-07-16 03:28:44 UTC) #8
hiroshige
https://codereview.chromium.org/1234213002/diff/40001/content/child/shared_memory_data_consumer_handle.cc File content/child/shared_memory_data_consumer_handle.cc (right): https://codereview.chromium.org/1234213002/diff/40001/content/child/shared_memory_data_consumer_handle.cc#newcode287 content/child/shared_memory_data_consumer_handle.cc:287: context_->PostNotify(); On 2015/07/16 03:28:44, kinuko wrote: > If some ...
5 years, 5 months ago (2015-07-16 05:35:58 UTC) #9
kinuko
lgtm
5 years, 5 months ago (2015-07-16 05:49:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1234213002/60001
5 years, 5 months ago (2015-07-16 08:57:53 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-16 10:23:35 UTC) #14
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 10:25:36 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e1a55538db15f150f4195dde5c8598d9bcf998d9
Cr-Commit-Position: refs/heads/master@{#339008}

Powered by Google App Engine
This is Rietveld 408576698