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

Issue 2023193002: Protect MessageQueue stop field with a critical section to avoid data races. (Closed)

Created:
4 years, 6 months ago by andresp
Modified:
4 years, 5 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Protect MessageQueue stop field with a critical section to avoid data races. Committed: https://crrev.com/1d35d2971b1e89b3ecadb7fb1ff064f9af850ad4 Cr-Commit-Position: refs/heads/master@{#13430}

Patch Set 1 #

Total comments: 3

Patch Set 2 : use atomics #

Patch Set 3 : fix windows compile error. #

Patch Set 4 : Clear suppresion is needed for vtable/destructor race #

Total comments: 2

Patch Set 5 : initialize with 0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -12 lines) Patch
M webrtc/base/messagequeue.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/base/messagequeue.cc View 1 2 3 4 5 chunks +12 lines, -8 lines 0 comments Download
M webrtc/base/thread.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/build/sanitizers/tsan_suppressions_webrtc.cc View 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 35 (11 generated)
andresp
On 2016/06/01 09:22:08, andresp wrote: > mailto:andresp@webrtc.org changed reviewers: > + mailto:tommi@webrtc.org The win_drmemory_light fail ...
4 years, 6 months ago (2016-06-01 10:52:11 UTC) #2
tommi
swapping myself out for pthatcher (but you have my lgtm rubber stamp if you need ...
4 years, 6 months ago (2016-06-01 12:41:57 UTC) #4
andresp
On 2016/06/01 12:41:57, tommi-webrtc wrote: > swapping myself out for pthatcher (but you have my ...
4 years, 6 months ago (2016-06-01 14:06:29 UTC) #5
tommi
On 2016/06/01 14:06:29, andresp wrote: > On 2016/06/01 12:41:57, tommi-webrtc wrote: > > swapping myself ...
4 years, 6 months ago (2016-06-01 14:25:31 UTC) #6
pthatcher1
Taylor, can you also check this? Anything in MessageQueue could use multiple eyes. https://codereview.webrtc.org/2023193002/diff/1/webrtc/base/messagequeue.cc File ...
4 years, 6 months ago (2016-06-01 15:29:14 UTC) #8
tommi (sloooow) - chröme
https://codereview.webrtc.org/2023193002/diff/1/webrtc/base/messagequeue.cc File webrtc/base/messagequeue.cc (right): https://codereview.webrtc.org/2023193002/diff/1/webrtc/base/messagequeue.cc#newcode221 webrtc/base/messagequeue.cc:221: CritScope cs(&stop_crit_); On 2016/06/01 15:29:14, pthatcher1 wrote: > Should ...
4 years, 6 months ago (2016-06-01 15:53:29 UTC) #10
Taylor Brandstetter
I don't see that this race causes any issues. Is this just fixing a TSan ...
4 years, 6 months ago (2016-06-01 17:00:38 UTC) #11
tommi
On 2016/06/01 17:00:38, Taylor Brandstetter wrote: > I don't see that this race causes any ...
4 years, 6 months ago (2016-06-01 17:03:14 UTC) #12
pbos-webrtc
On 2016/06/01 17:03:14, tommi-webrtc wrote: > On 2016/06/01 17:00:38, Taylor Brandstetter wrote: > > I ...
4 years, 6 months ago (2016-06-17 20:08:59 UTC) #13
pbos-webrtc
On 2016/06/17 20:08:59, pbos-webrtc wrote: > On 2016/06/01 17:03:14, tommi-webrtc wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-17 20:10:00 UTC) #14
Taylor Brandstetter
On 2016/06/17 20:10:00, pbos-webrtc wrote: > On 2016/06/17 20:08:59, pbos-webrtc wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-21 23:17:43 UTC) #15
Taylor Brandstetter
On 2016/06/17 20:10:00, pbos-webrtc wrote: > On 2016/06/17 20:08:59, pbos-webrtc wrote: > > On 2016/06/01 ...
4 years, 6 months ago (2016-06-21 23:17:43 UTC) #16
andresp
Fixed according to comments. It is now using AtomicOps::Acquire/Release and it removes more race suppressions. ...
4 years, 5 months ago (2016-07-01 13:53:15 UTC) #17
andresp
On 2016/07/01 13:53:15, andresp wrote: > Fixed according to comments. It is now using AtomicOps::Acquire/Release ...
4 years, 5 months ago (2016-07-07 13:10:56 UTC) #18
Taylor Brandstetter
lgtm with minor nit https://codereview.webrtc.org/2023193002/diff/60001/webrtc/base/messagequeue.cc File webrtc/base/messagequeue.cc (right): https://codereview.webrtc.org/2023193002/diff/60001/webrtc/base/messagequeue.cc#newcode148 webrtc/base/messagequeue.cc:148: stop_(false), Since it's an int ...
4 years, 5 months ago (2016-07-07 22:01:47 UTC) #19
andresp
https://codereview.webrtc.org/2023193002/diff/60001/webrtc/base/messagequeue.cc File webrtc/base/messagequeue.cc (right): https://codereview.webrtc.org/2023193002/diff/60001/webrtc/base/messagequeue.cc#newcode148 webrtc/base/messagequeue.cc:148: stop_(false), On 2016/07/07 22:01:47, Taylor Brandstetter wrote: > Since ...
4 years, 5 months ago (2016-07-08 10:05:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2023193002/80001
4 years, 5 months ago (2016-07-08 10:05:54 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_dbg on ...
4 years, 5 months ago (2016-07-08 12:06:29 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.webrtc.org/2023193002/80001
4 years, 5 months ago (2016-07-08 12:43:40 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 5 months ago (2016-07-08 14:44:10 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2023193002/80001
4 years, 5 months ago (2016-07-11 07:59:39 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-11 09:23:49 UTC) #32
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/1d35d2971b1e89b3ecadb7fb1ff064f9af850ad4 Cr-Commit-Position: refs/heads/master@{#13430}
4 years, 5 months ago (2016-07-11 09:23:57 UTC) #34
henrika_webrtc
4 years, 5 months ago (2016-07-11 09:48:26 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.webrtc.org/2135173002/ by henrika@webrtc.org.

The reason for reverting is: Only reasonable CL in blameslist for broken Chrome
FYI bots on all platforms. See 

https://build.chromium.org/p/chromium.webrtc.fyi/waterfall?builder=Mac%20Builder.

Powered by Google App Engine
This is Rietveld 408576698