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

Issue 2366333003: Fix race / crash in OnNetworkRouteChanged(). (Closed)

Created:
4 years, 2 months ago by stefan-webrtc
Modified:
4 years, 2 months ago
Reviewers:
terelius
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhuangzesen_agora.io, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, perkj_webrtc, mflodman
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix race / crash in OnNetworkRouteChanged(). To achieve this some refactoring was done to make it possible to synchronize access to the DelayBasedBwe in TransportFeedbackAdapter: - The callback was removed from DelayBasedBwe, it now instead returns its result. - TransportFeedbackAdapter was moved to modules/congestion_controller to avoid unnecessary dependencies. Reenables previously disabled flaky test. Can no longer reproduce flakiness with gtest-parallel and asan/tsan builds. BUG=webrtc:6427, webrtc:6422 Committed: https://crrev.com/fd0d42669204e6dd92a60736bca7ae0196663024 Cr-Commit-Position: refs/heads/master@{#14430}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Clean up #

Patch Set 3 : Remove moved files from gypi. #

Patch Set 4 : Rebase. #

Patch Set 5 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -904 lines) Patch
M webrtc/modules/BUILD.gn View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_impl.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_impl.cc View 1 chunk +10 lines, -14 lines 0 comments Download
M webrtc/modules/bitrate_controller/bitrate_controller_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/bitrate_controller/include/bitrate_controller.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/BUILD.gn View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/congestion_controller/congestion_controller.cc View 6 chunks +7 lines, -13 lines 0 comments Download
M webrtc/modules/congestion_controller/congestion_controller.gypi View 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe.h View 1 3 chunks +22 lines, -29 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe.cc View 1 2 3 4 7 chunks +73 lines, -86 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe_unittest.cc View 6 chunks +10 lines, -10 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webrtc/modules/congestion_controller/delay_based_bwe_unittest_helper.cc View 14 chunks +56 lines, -58 lines 0 comments Download
M webrtc/modules/congestion_controller/include/congestion_controller.h View 1 chunk +1 line, -1 line 0 comments Download
A + webrtc/modules/congestion_controller/transport_feedback_adapter.h View 1 chunk +16 lines, -11 lines 0 comments Download
A + webrtc/modules/congestion_controller/transport_feedback_adapter.cc View 5 chunks +25 lines, -15 lines 0 comments Download
A + webrtc/modules/congestion_controller/transport_feedback_adapter_unittest.cc View 1 2 3 11 chunks +31 lines, -67 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.h View 1 chunk +0 lines, -65 lines 0 comments Download
D webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc View 1 chunk +0 lines, -148 lines 0 comments Download
D webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter_unittest.cc View 1 2 3 1 chunk +0 lines, -364 lines 0 comments Download
M webrtc/tools/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/tools/event_log_visualizer/analyzer.cc View 3 chunks +31 lines, -1 line 2 comments Download
M webrtc/video/video_send_stream_tests.cc View 1 2 3 1 chunk +30 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
stefan-webrtc
https://codereview.webrtc.org/2366333003/diff/1/webrtc/modules/congestion_controller/delay_based_bwe.cc File webrtc/modules/congestion_controller/delay_based_bwe.cc (left): https://codereview.webrtc.org/2366333003/diff/1/webrtc/modules/congestion_controller/delay_based_bwe.cc#oldcode78 webrtc/modules/congestion_controller/delay_based_bwe.cc:78: rtc::CritScope lock(&crit_); Mostly it's the lock that has been ...
4 years, 2 months ago (2016-09-27 10:58:55 UTC) #2
stefan-webrtc
Clean up
4 years, 2 months ago (2016-09-27 11:21:32 UTC) #3
stefan-webrtc
Remove moved files from gypi.
4 years, 2 months ago (2016-09-27 11:26:30 UTC) #4
stefan-webrtc
Rebase.
4 years, 2 months ago (2016-09-27 11:27:48 UTC) #5
stefan-webrtc
.
4 years, 2 months ago (2016-09-28 13:44:16 UTC) #12
terelius
Nice refactoring! LGTM, with one question below: https://codereview.webrtc.org/2366333003/diff/80001/webrtc/tools/event_log_visualizer/analyzer.cc File webrtc/tools/event_log_visualizer/analyzer.cc (right): https://codereview.webrtc.org/2366333003/diff/80001/webrtc/tools/event_log_visualizer/analyzer.cc#newcode1058 webrtc/tools/event_log_visualizer/analyzer.cc:1058: // BitrateController. ...
4 years, 2 months ago (2016-09-29 09:32:44 UTC) #17
stefan-webrtc
https://codereview.webrtc.org/2366333003/diff/80001/webrtc/tools/event_log_visualizer/analyzer.cc File webrtc/tools/event_log_visualizer/analyzer.cc (right): https://codereview.webrtc.org/2366333003/diff/80001/webrtc/tools/event_log_visualizer/analyzer.cc#newcode1058 webrtc/tools/event_log_visualizer/analyzer.cc:1058: // BitrateController. On 2016/09/29 09:32:44, terelius wrote: > Is ...
4 years, 2 months ago (2016-09-29 09:35:02 UTC) #18
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/2366333003/80001
4 years, 2 months ago (2016-09-29 09:35:17 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-29 09:44:35 UTC) #22
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/fd0d42669204e6dd92a60736bca7ae0196663024 Cr-Commit-Position: refs/heads/master@{#14430}
4 years, 2 months ago (2016-09-29 09:44:46 UTC) #24
stefan-webrtc
4 years, 2 months ago (2016-09-29 11:19:25 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.webrtc.org/2377303002/ by stefan@webrtc.org.

The reason for reverting is: Caused issues with webrtc_perf_tests on build
bots..

Powered by Google App Engine
This is Rietveld 408576698