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

Issue 2131503002: Replace reentrant check to be more explicit and avoid a data race when comparing (Closed)

Created:
4 years, 5 months ago by andresp
Modified:
4 years, 5 months ago
Reviewers:
tommi, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replace reentrant ASSERT checks in MessageQueueManager with a non-racy version. ASSERT(!crit_.CurrentThreadIsOwner()) was racy due to use of a rtc::IsThreadRefEqual which cannot compare the thread handlers without a lock unless one is already sure it is the thread owning the crit. Committed: https://crrev.com/cdf6172b7fcb32bb4363243377e08731cc9a4b5d Cr-Commit-Position: refs/heads/master@{#13411}

Patch Set 1 #

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -22 lines) Patch
M webrtc/base/criticalsection.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/messagequeue.h View 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/base/messagequeue.cc View 7 chunks +29 lines, -20 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
andresp
4 years, 5 months ago (2016-07-07 13:03:41 UTC) #5
tommi
On 2016/07/07 13:03:41, andresp wrote: Is there a chance that the assert could have ever ...
4 years, 5 months ago (2016-07-07 14:35:39 UTC) #6
andresp
On 2016/07/07 14:35:39, tommi-webrtc wrote: > On 2016/07/07 13:03:41, andresp wrote: > > Is there ...
4 years, 5 months ago (2016-07-07 15:01:54 UTC) #7
tommi
On 2016/07/07 15:01:54, andresp wrote: > On 2016/07/07 14:35:39, tommi-webrtc wrote: > > On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 15:45:41 UTC) #8
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/2131503002/60001
4 years, 5 months ago (2016-07-08 08:28:02 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 5 months ago (2016-07-08 09:45:47 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 09:45:51 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cdf6172b7fcb32bb4363243377e08731cc9a4b5d
Cr-Commit-Position: refs/heads/master@{#13411}

Powered by Google App Engine
This is Rietveld 408576698