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

Issue 2751353003: Bug Fix: Data Race For WebMediaPlayerMS' Frame Count Variable (Closed)

Created:
3 years, 9 months ago by qiangchen
Modified:
3 years, 9 months ago
Reviewers:
DaleCurtis
CC:
chfremer+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bug Fix: Data Race For WebMediaPlayerMS' Frame Count Variable On thread sanitizer, we found a data race issue for WebMediaPlayerMS' frame count variables |total_frame_count_| and |dropped_frame_count_|. In this CL We make those two variables atomic. BUG=701712 Review-Url: https://codereview.chromium.org/2751353003 Cr-Commit-Position: refs/heads/master@{#457786} Committed: https://chromium.googlesource.com/chromium/src/+/4cb6dcab2e3d9b4f14ff3bd5dc8f3fd3a57e19e5

Patch Set 1 : include #

Patch Set 2 : Lock #

Patch Set 3 : Remove const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M content/renderer/media/webmediaplayer_ms_compositor.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms_compositor.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
qiangchen
Can you take a look at this simple fix?
3 years, 9 months ago (2017-03-16 21:13:34 UTC) #12
DaleCurtis
Can't use std atomic per style guide. Just set them under lock.
3 years, 9 months ago (2017-03-16 21:46:16 UTC) #13
qiangchen
Then we can use current_frame_lock_, as these two quantities are related to frame updating.
3 years, 9 months ago (2017-03-16 21:53:45 UTC) #14
DaleCurtis
lgtm
3 years, 9 months ago (2017-03-16 22:26:12 UTC) #15
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/2751353003/40001
3 years, 9 months ago (2017-03-16 22:26:57 UTC) #17
DaleCurtis
Hmm, Render() doesn't seem to hold current_Frame_lock?
3 years, 9 months ago (2017-03-16 22:27:29 UTC) #18
DaleCurtis
Nevermind it asserts acquired.
3 years, 9 months ago (2017-03-16 22:27:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/34108) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-16 22:38:10 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/2751353003/60001
3 years, 9 months ago (2017-03-17 16:01:19 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/chromium/src/+/4cb6dcab2e3d9b4f14ff3bd5dc8f3fd3a57e19e5
3 years, 9 months ago (2017-03-17 16:09:18 UTC) #31
qiangchen
A revert of this CL (patchset #3 id:60001) has been created in https://codereview.chromium.org/2777183009/ by qiangchen@chromium.org. ...
3 years, 8 months ago (2017-03-29 21:02:32 UTC) #32
BigBossZhiling
3 years, 8 months ago (2017-03-29 21:02:49 UTC) #33
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:60001) has been created in
https://codereview.chromium.org/2783013002/ by hzl@google.com.

The reason for reverting is: Reverting the cl to see whether lock contention has
increased chrome public test apk time. Thanks qiangchen for understanding!.

Powered by Google App Engine
This is Rietveld 408576698