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

Issue 2043553003: Zero closed ThreadCondition handles (Closed)

Created:
4 years, 6 months ago by brucedawson
Modified:
4 years, 6 months ago
Reviewers:
esprehn, sof
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Zero closed ThreadCondition handles The ThreadCondition constructor checks for failed calls to CreateMutex and CreateSemaphore, but if they are detected it closes the handles without zeroing them. This change zeroes them to avoid unpredictable behavior from use-after-close. The change also checks for nullptr before closing them in the destructor in order to keep handle verifiers happy. BUG=615306 Committed: https://crrev.com/42b7246433e2b79901292d2bc97dc6607530fac2 Cr-Commit-Position: refs/heads/master@{#398314}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M third_party/WebKit/Source/wtf/ThreadingWin.cpp View 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
brucedawson
PTAL. This should be a condition that we never hit, but the current state still ...
4 years, 6 months ago (2016-06-06 23:02:36 UTC) #4
sof
lgtm
4 years, 6 months ago (2016-06-07 05:14:52 UTC) #6
esprehn
lgtm
4 years, 6 months ago (2016-06-07 05:45:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2043553003/1
4 years, 6 months ago (2016-06-07 16:45:54 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-07 16:49:44 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 16:51:15 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/42b7246433e2b79901292d2bc97dc6607530fac2
Cr-Commit-Position: refs/heads/master@{#398314}

Powered by Google App Engine
This is Rietveld 408576698