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

Issue 9020008: Enable ThreadChecker in non-debug builds if DCHECK_ALWAYS_ON is (Closed)

Created:
9 years ago by Jói
Modified:
8 years, 11 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org, joth
Visibility:
Public.

Description

Enable ThreadChecker in non-debug builds if DCHECK_ALWAYS_ON is defined. This brings thread checking to e.g. the *_rel trybots. BUG=108227 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116350

Patch Set 1 : . #

Patch Set 2 : Merge to LKGR. #

Total comments: 1

Patch Set 3 : Nicer #define #

Patch Set 4 : Add IsEnabled function, use in one test. #

Total comments: 1

Patch Set 5 : Remove IsEnabled, perform death test only in debug builds. #

Total comments: 3

Patch Set 6 : Merge to LKGR (pure merge). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -12 lines) Patch
M base/message_pump_libevent_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M base/threading/thread_checker.h View 1 2 4 2 chunks +16 lines, -3 lines 0 comments Download
M base/threading/thread_checker_unittest.cc View 1 2 6 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Jói
9 years ago (2011-12-21 11:12:23 UTC) #1
joth
drive-by (no need to wait for me on any follow-ups) http://codereview.chromium.org/9020008/diff/3001/base/threading/thread_checker_unittest.cc File base/threading/thread_checker_unittest.cc (right): http://codereview.chromium.org/9020008/diff/3001/base/threading/thread_checker_unittest.cc#newcode13 ...
9 years ago (2011-12-21 14:17:15 UTC) #2
Jói
> FWIW you could simplify it both places to> #define ENABLE_THREAD_CHECKER (!defined(NDEBUG) ||> defined(DCHECK_ALWAYS_ON)) That's ...
9 years ago (2011-12-21 14:58:27 UTC) #3
Jói
So there was a test asserting debug death (and non-death in release mode) which no ...
9 years ago (2011-12-21 16:22:34 UTC) #4
Nico
I think this change is a great idea. It looks like most of the complexity ...
9 years ago (2011-12-21 18:10:11 UTC) #5
Jói
Hi Nico, Agreed the ASSERT_*_DEATH tests are often not that useful. In this case the ...
8 years, 12 months ago (2011-12-27 14:13:11 UTC) #6
dmac
IIRC I had a case where I was watching a file descriptor off of a ...
8 years, 12 months ago (2011-12-28 05:38:09 UTC) #7
Jói
Dave, in my opinion the test is fine. At this point it probably just verifies ...
8 years, 12 months ago (2011-12-28 11:12:07 UTC) #8
Nico
(sorry for the delay; new year's and stuff) http://codereview.chromium.org/9020008/diff/8001/base/message_pump_libevent_unittest.cc File base/message_pump_libevent_unittest.cc (right): http://codereview.chromium.org/9020008/diff/8001/base/message_pump_libevent_unittest.cc#newcode62 base/message_pump_libevent_unittest.cc:62: #if ...
8 years, 11 months ago (2012-01-02 23:42:36 UTC) #9
Jói
Thanks Nico. New Year's etc. delays on this end as well :) Cheers, Jói http://codereview.chromium.org/9020008/diff/8001/base/message_pump_libevent_unittest.cc ...
8 years, 11 months ago (2012-01-04 09:29:29 UTC) #10
Nico
http://codereview.chromium.org/9020008/diff/8001/base/message_pump_libevent_unittest.cc File base/message_pump_libevent_unittest.cc (right): http://codereview.chromium.org/9020008/diff/8001/base/message_pump_libevent_unittest.cc#newcode62 base/message_pump_libevent_unittest.cc:62: #if GTEST_HAS_DEATH_TEST && !defined(NDEBUG) On 2012/01/04 09:29:32, Jói wrote: ...
8 years, 11 months ago (2012-01-04 16:15:10 UTC) #11
Jói
tl;dr: OK, will go with the current version of the change and see how it ...
8 years, 11 months ago (2012-01-04 16:23:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9020008/16001
8 years, 11 months ago (2012-01-04 16:24:54 UTC) #13
commit-bot: I haz the power
Presubmit check for 9020008-16001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-04 16:25:04 UTC) #14
Jói
+jar for base/OWNERS approval. Cheers, Jói
8 years, 11 months ago (2012-01-04 16:28:00 UTC) #15
jar (doing other things)
lgtm
8 years, 11 months ago (2012-01-04 17:06:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/9020008/16001
8 years, 11 months ago (2012-01-04 17:36:47 UTC) #17
commit-bot: I haz the power
8 years, 11 months ago (2012-01-04 19:02:40 UTC) #18
Change committed as 116350

Powered by Google App Engine
This is Rietveld 408576698