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

Issue 2350663002: Change thread check to race check (Closed)

Created:
4 years, 3 months ago by the sun
Modified:
4 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, perkj_webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Change thread check to race check. Also, add comment to explain implementation of RaceChecker. BUG=webrtc:6345 Committed: https://crrev.com/347ec5c72e9fc1698520b650f0515205999e39d0 Cr-Commit-Position: refs/heads/master@{#14369}

Patch Set 1 #

Patch Set 2 : new impl #

Total comments: 2

Patch Set 3 : using RaceChecker instead #

Total comments: 6

Patch Set 4 : update comment #

Total comments: 1

Patch Set 5 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M webrtc/base/race_checker.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/media/engine/webrtcvoiceengine.cc View 1 2 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (10 generated)
the sun
Tommi, Karl, this is a proof of concept and I'd like your input before adding ...
4 years, 3 months ago (2016-09-19 20:45:01 UTC) #3
tommi
On 2016/09/19 20:45:01, the sun wrote: > Tommi, Karl, this is a proof of concept ...
4 years, 3 months ago (2016-09-20 08:51:58 UTC) #4
the sun
On 2016/09/20 08:51:58, tommi (webrtc) wrote: > On 2016/09/19 20:45:01, the sun wrote: > > ...
4 years, 3 months ago (2016-09-20 09:02:38 UTC) #5
tommi
On 2016/09/20 09:02:38, the sun wrote: > On 2016/09/20 08:51:58, tommi (webrtc) wrote: > > ...
4 years, 3 months ago (2016-09-20 09:10:35 UTC) #6
kwiberg-webrtc
I like the idea. https://codereview.webrtc.org/2350663002/diff/20001/webrtc/base/thread_checker.h File webrtc/base/thread_checker.h (right): https://codereview.webrtc.org/2350663002/diff/20001/webrtc/base/thread_checker.h#newcode211 webrtc/base/thread_checker.h:211: __RTC_DCHECK_NON_REENTRANT_NAME(checker, __LINE__)(checker); The semicolon shouldn't ...
4 years, 3 months ago (2016-09-20 10:55:22 UTC) #7
the sun
On 2016/09/20 10:55:22, kwiberg-webrtc wrote: > I like the idea. > > https://codereview.webrtc.org/2350663002/diff/20001/webrtc/base/thread_checker.h > File ...
4 years, 3 months ago (2016-09-20 12:34:46 UTC) #8
kwiberg-webrtc
On 2016/09/20 12:34:46, the sun wrote: > perkj@ made me aware of > https://cs.chromium.org/chromium/src/third_party/webrtc/base/race_checker.h Ew! ...
4 years, 3 months ago (2016-09-20 12:50:56 UTC) #9
the sun
On 2016/09/20 12:50:56, kwiberg-webrtc wrote: > On 2016/09/20 12:34:46, the sun wrote: > > perkj@ ...
4 years, 3 months ago (2016-09-20 17:53:31 UTC) #10
kwiberg-webrtc
On 2016/09/20 17:53:31, the sun wrote: > On 2016/09/20 12:50:56, kwiberg-webrtc wrote: > > On ...
4 years, 3 months ago (2016-09-20 18:26:18 UTC) #11
the sun
On 2016/09/20 18:26:18, kwiberg-webrtc wrote: > On 2016/09/20 17:53:31, the sun wrote: > > On ...
4 years, 3 months ago (2016-09-20 18:40:04 UTC) #12
kwiberg-webrtc
https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc#newcode20 webrtc/base/race_checker.cc:20: // twice, causing the IsThreadRefEqual() check to return false ...
4 years, 3 months ago (2016-09-20 19:29:08 UTC) #15
pbos-webrtc
https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc#newcode20 webrtc/base/race_checker.cc:20: // twice, causing the IsThreadRefEqual() check to return false ...
4 years, 3 months ago (2016-09-20 19:36:02 UTC) #16
pbos-webrtc
ell-gee-tee-emm lgtm https://codereview.webrtc.org/2350663002/diff/40001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2350663002/diff/40001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1321 webrtc/media/engine/webrtcvoiceengine.cc:1321: webrtc::AudioTransport* const voe_audio_transport_ = nullptr; GUARDED_BY(audio_capture_racer_checker_) if ...
4 years, 3 months ago (2016-09-20 19:38:03 UTC) #17
kwiberg-webrtc
https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc#newcode20 webrtc/base/race_checker.cc:20: // twice, causing the IsThreadRefEqual() check to return false ...
4 years, 3 months ago (2016-09-20 20:01:32 UTC) #18
kwiberg-webrtc
https://codereview.webrtc.org/2350663002/diff/40001/webrtc/media/engine/webrtcvoiceengine.cc File webrtc/media/engine/webrtcvoiceengine.cc (right): https://codereview.webrtc.org/2350663002/diff/40001/webrtc/media/engine/webrtcvoiceengine.cc#newcode1321 webrtc/media/engine/webrtcvoiceengine.cc:1321: webrtc::AudioTransport* const voe_audio_transport_ = nullptr; On 2016/09/20 19:38:03, pbos-webrtc ...
4 years, 3 months ago (2016-09-20 20:05:25 UTC) #19
pbos-webrtc
On 2016/09/20 20:01:32, kwiberg-webrtc wrote: > https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc > File webrtc/base/race_checker.cc (right): > > https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc#newcode20 > ...
4 years, 3 months ago (2016-09-20 20:15:29 UTC) #20
the sun
On 2016/09/20 20:15:29, pbos-webrtc wrote: > On 2016/09/20 20:01:32, kwiberg-webrtc wrote: > > > https://codereview.webrtc.org/2350663002/diff/40001/webrtc/base/race_checker.cc ...
4 years, 3 months ago (2016-09-20 20:25:00 UTC) #21
kwiberg-webrtc
On 2016/09/20 20:15:29, pbos-webrtc wrote: > > Yes, garbage in access_count_ shouldn't be a problem. ...
4 years, 3 months ago (2016-09-20 20:33:02 UTC) #22
pbos-webrtc
On 2016/09/20 20:33:02, kwiberg-webrtc wrote: > Yes. But there's no guarantee that adding more racy ...
4 years, 3 months ago (2016-09-20 20:37:33 UTC) #23
pbos-webrtc
On 2016/09/20 20:37:33, pbos-webrtc wrote: > On 2016/09/20 20:33:02, kwiberg-webrtc wrote: > > Yes. But ...
4 years, 3 months ago (2016-09-20 20:38:08 UTC) #24
kwiberg-webrtc
On 2016/09/20 20:25:00, the sun wrote: > On 2016/09/20 20:15:29, pbos-webrtc wrote: > > On ...
4 years, 3 months ago (2016-09-20 20:40:05 UTC) #25
kwiberg-webrtc
On 2016/09/20 20:37:33, pbos-webrtc wrote: > But I think the bikeshed is sufficiently red by ...
4 years, 3 months ago (2016-09-20 20:41:44 UTC) #26
the sun
Karl, Tommi, I've updated the comment.
4 years, 3 months ago (2016-09-22 19:40:13 UTC) #27
kwiberg-webrtc
lgtm, with a suggestion https://codereview.webrtc.org/2350663002/diff/60001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): https://codereview.webrtc.org/2350663002/diff/60001/webrtc/base/race_checker.cc#newcode22 webrtc/base/race_checker.cc:22: // spot where a race ...
4 years, 3 months ago (2016-09-22 20:12:18 UTC) #28
tommi
lgtm
4 years, 3 months ago (2016-09-23 05:50:05 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/2350663002/80001
4 years, 3 months ago (2016-09-23 08:09:57 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios_arm64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_rel/builds/13134)
4 years, 3 months ago (2016-09-23 08:13:29 UTC) #34
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/2350663002/80001
4 years, 3 months ago (2016-09-23 10:48:02 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-23 11:21:50 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 11:22:00 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/347ec5c72e9fc1698520b650f0515205999e39d0
Cr-Commit-Position: refs/heads/master@{#14369}

Powered by Google App Engine
This is Rietveld 408576698