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

Issue 2218443002: Fix SchedulerLock unittests to actually generate a DCHECK, not an exception (Closed)

Created:
4 years, 4 months ago by gab
Modified:
4 years, 4 months ago
Reviewers:
robliao
CC:
chromium-reviews, gab+watch_chromium.org, robliao+watch_chromium.org, fdoray+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@b2b0_simplethreadJoinable
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SchedulerLock unittests to actually generate a DCHECK, not an exception in SafeAcquisitionTracker::AssertSafePredecessor(). Issue was found when writing https://codereview.chromium.org/2213933003/ BUG=553459 NO_DEPENDENCY_CHECKS=true Committed: https://crrev.com/9ffb2552a784cbbdfd7cf39d1c3913bd5242c948 Cr-Commit-Position: refs/heads/master@{#409879}

Patch Set 1 #

Patch Set 2 : tweak comment #

Total comments: 2

Patch Set 3 : re-tweak comment w/ robliao's suggestion #

Total comments: 2

Patch Set 4 : s/lock/SchedulerLock/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M base/task_scheduler/scheduler_lock_impl.cc View 1 2 3 1 chunk +17 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (11 generated)
gab
@robliao: split from https://codereview.chromium.org/2213933003/
4 years, 4 months ago (2016-08-04 17:45:23 UTC) #5
robliao
lgtm. Optional: I guess you could say by induction the lock chain is safe if ...
4 years, 4 months ago (2016-08-04 17:47:48 UTC) #6
gab
On 2016/08/04 17:47:48, robliao wrote: > lgtm. Optional: I guess you could say by induction ...
4 years, 4 months ago (2016-08-04 17:51:45 UTC) #7
robliao
https://codereview.chromium.org/2218443002/diff/20001/base/task_scheduler/scheduler_lock_impl.cc File base/task_scheduler/scheduler_lock_impl.cc (right): https://codereview.chromium.org/2218443002/diff/20001/base/task_scheduler/scheduler_lock_impl.cc#newcode76 base/task_scheduler/scheduler_lock_impl.cc:76: // This asserts that |lock|'s registered predecessor is safe ...
4 years, 4 months ago (2016-08-04 18:13:29 UTC) #8
gab
https://codereview.chromium.org/2218443002/diff/20001/base/task_scheduler/scheduler_lock_impl.cc File base/task_scheduler/scheduler_lock_impl.cc (right): https://codereview.chromium.org/2218443002/diff/20001/base/task_scheduler/scheduler_lock_impl.cc#newcode76 base/task_scheduler/scheduler_lock_impl.cc:76: // This asserts that |lock|'s registered predecessor is safe ...
4 years, 4 months ago (2016-08-04 18:15:07 UTC) #9
robliao
lgtm + some more s/lock/SchedulerLock/ https://codereview.chromium.org/2218443002/diff/40001/base/task_scheduler/scheduler_lock_impl.cc File base/task_scheduler/scheduler_lock_impl.cc (right): https://codereview.chromium.org/2218443002/diff/40001/base/task_scheduler/scheduler_lock_impl.cc#newcode78 base/task_scheduler/scheduler_lock_impl.cc:78: // specified on a ...
4 years, 4 months ago (2016-08-04 18:15:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218443002/40001
4 years, 4 months ago (2016-08-04 18:16:07 UTC) #13
gab
On 2016/08/04 18:15:53, robliao wrote: > lgtm + some more s/lock/SchedulerLock/ > > https://codereview.chromium.org/2218443002/diff/40001/base/task_scheduler/scheduler_lock_impl.cc > ...
4 years, 4 months ago (2016-08-04 18:20:43 UTC) #15
robliao
On 2016/08/04 18:20:43, gab wrote: > On 2016/08/04 18:15:53, robliao wrote: > > lgtm + ...
4 years, 4 months ago (2016-08-04 18:22:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2218443002/60001
4 years, 4 months ago (2016-08-04 18:37:48 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-04 19:59:58 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 20:02:10 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9ffb2552a784cbbdfd7cf39d1c3913bd5242c948
Cr-Commit-Position: refs/heads/master@{#409879}

Powered by Google App Engine
This is Rietveld 408576698