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

Issue 2097403002: Add a race-checking mechanism. (Closed)

Created:
4 years, 5 months ago by pbos-webrtc
Modified:
4 years, 5 months ago
Reviewers:
tommi, danilchap
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add a race-checking mechanism. Permits CHECKing/DCHECKing that methods are being accessed in a thread-safe manner, even if they are not used by one single thread (thread pools such as VideoToolbox OK). BUG= R=danilchap@webrtc.org, tommi@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/02bafc6379969075127760e060fc262b0d76b3ca

Patch Set 1 #

Total comments: 1

Patch Set 2 : race_checker.cc #

Patch Set 3 : remove synchronization, fix Release() #

Total comments: 2

Patch Set 4 : bah #

Total comments: 5

Patch Set 5 : fixes #

Patch Set 6 : RUNS_SYNCHRONIZED #

Total comments: 2

Patch Set 7 : space between ctor #

Total comments: 1

Patch Set 8 : RUNS_SERIALIZED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -4 lines) Patch
M webrtc/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/base/base.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A webrtc/base/race_checker.h View 1 2 3 4 5 6 7 1 chunk +78 lines, -0 lines 0 comments Download
A webrtc/base/race_checker.cc View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
M webrtc/common_video/include/incoming_video_stream.h View 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/common_video/incoming_video_stream.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M webrtc/modules/video_coding/generic_encoder.h View 2 chunks +4 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/generic_encoder.cc View 1 2 3 4 5 6 7 6 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
pbos-webrtc
PTAL, the thread check in IncomingVideoStream was recently removed because the decoders didn't call it ...
4 years, 5 months ago (2016-06-27 14:07:59 UTC) #1
pbos-webrtc
race_checker.cc
4 years, 5 months ago (2016-06-27 14:18:42 UTC) #2
pbos-webrtc
remove synchronization, fix Release()
4 years, 5 months ago (2016-06-27 14:44:16 UTC) #3
pbos-webrtc
4 years, 5 months ago (2016-06-27 14:44:38 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2097403002/40001
4 years, 5 months ago (2016-06-27 14:46:46 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios64_gn_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios64_gn_dbg/builds/779) ios64_sim_dbg on ...
4 years, 5 months ago (2016-06-27 14:48:16 UTC) #8
pbos-webrtc
bah
4 years, 5 months ago (2016-06-27 14:53:32 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2097403002/60001
4 years, 5 months ago (2016-06-27 15:04:06 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_rel/builds/14720)
4 years, 5 months ago (2016-06-27 15:06:36 UTC) #13
danilchap
https://codereview.webrtc.org/2097403002/diff/40001/webrtc/base/race_checker.h File webrtc/base/race_checker.h (right): https://codereview.webrtc.org/2097403002/diff/40001/webrtc/base/race_checker.h#newcode55 webrtc/base/race_checker.h:55: explicit RaceCheckerScopeDoNothing(RaceChecker* race_checker) const RaceChecker* https://codereview.webrtc.org/2097403002/diff/60001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): ...
4 years, 5 months ago (2016-06-27 17:58:58 UTC) #14
pbos-webrtc
fixes
4 years, 5 months ago (2016-06-27 18:05:53 UTC) #15
pbos-webrtc
I think the other names sound more complicated, but I don't want this to be ...
4 years, 5 months ago (2016-06-27 18:06:39 UTC) #16
pbos-webrtc
RUNS_SYNCHRONIZED
4 years, 5 months ago (2016-06-28 11:03:34 UTC) #17
pbos-webrtc
https://codereview.webrtc.org/2097403002/diff/60001/webrtc/base/race_checker.h File webrtc/base/race_checker.h (right): https://codereview.webrtc.org/2097403002/diff/60001/webrtc/base/race_checker.h#newcode64 webrtc/base/race_checker.h:64: #define RTC_CHECK_RUNS_SINGLE_THREADED(x) \ On 2016/06/27 18:06:39, pbos-webrtc wrote: > ...
4 years, 5 months ago (2016-06-28 11:04:25 UTC) #18
danilchap
looks good to me % nit https://codereview.webrtc.org/2097403002/diff/100001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): https://codereview.webrtc.org/2097403002/diff/100001/webrtc/base/race_checker.cc#newcode14 webrtc/base/race_checker.cc:14: RaceChecker::RaceChecker() {} empty ...
4 years, 5 months ago (2016-06-28 13:48:12 UTC) #19
danilchap
On 2016/06/28 13:48:12, danilchap wrote: > looks good to me % nit > > https://codereview.webrtc.org/2097403002/diff/100001/webrtc/base/race_checker.cc ...
4 years, 5 months ago (2016-06-28 13:48:48 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2097403002/100001
4 years, 5 months ago (2016-06-28 14:21:23 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/14558)
4 years, 5 months ago (2016-06-28 14:28:56 UTC) #24
pbos-webrtc
space between ctor
4 years, 5 months ago (2016-06-28 15:05:36 UTC) #25
pbos-webrtc
https://codereview.webrtc.org/2097403002/diff/100001/webrtc/base/race_checker.cc File webrtc/base/race_checker.cc (right): https://codereview.webrtc.org/2097403002/diff/100001/webrtc/base/race_checker.cc#newcode14 webrtc/base/race_checker.cc:14: RaceChecker::RaceChecker() {} On 2016/06/28 13:48:12, danilchap wrote: > empty ...
4 years, 5 months ago (2016-06-28 15:05:43 UTC) #26
tommi
https://codereview.webrtc.org/2097403002/diff/120001/webrtc/base/race_checker.h File webrtc/base/race_checker.h (right): https://codereview.webrtc.org/2097403002/diff/120001/webrtc/base/race_checker.h#newcode65 webrtc/base/race_checker.h:65: #define RTC_CHECK_RUNS_SYNCHRONIZED(x) \ Just checking - did you want ...
4 years, 5 months ago (2016-06-30 20:14:09 UTC) #27
pbos-webrtc
RUNS_SERIALIZED
4 years, 5 months ago (2016-07-01 09:38:26 UTC) #28
pbos-webrtc
Yep, thanks, done.
4 years, 5 months ago (2016-07-01 09:38:33 UTC) #29
tommi
lgtm
4 years, 5 months ago (2016-07-01 09:42:20 UTC) #30
pbos-webrtc
4 years, 5 months ago (2016-07-01 10:45:38 UTC) #33
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
02bafc6379969075127760e060fc262b0d76b3ca (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698