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

Unified Diff: src/base/platform/mutex.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/platform/elapsed-timer.h ('k') | src/base/platform/mutex.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/mutex.h
diff --git a/src/base/platform/mutex.h b/src/base/platform/mutex.h
index 5d0e57be57cb8141eee5fceaa37581b0679c6e46..01e9c3d17eb6d001d634bbc408d573f6c730bf7c 100644
--- a/src/base/platform/mutex.h
+++ b/src/base/platform/mutex.h
@@ -68,19 +68,19 @@ class Mutex FINAL {
private:
NativeHandle native_handle_;
-#ifdef DEBUG
+#if DCHECK_IS_ON
int level_;
#endif
V8_INLINE void AssertHeldAndUnmark() {
-#ifdef DEBUG
+#if DCHECK_IS_ON
DCHECK_EQ(1, level_);
level_--;
#endif
}
V8_INLINE void AssertUnheldAndMark() {
-#ifdef DEBUG
+#if DCHECK_IS_ON
DCHECK_EQ(0, level_);
level_++;
#endif
@@ -163,7 +163,7 @@ class RecursiveMutex FINAL {
private:
NativeHandle native_handle_;
-#ifdef DEBUG
+#if DCHECK_IS_ON
int level_;
#endif
« no previous file with comments | « src/base/platform/elapsed-timer.h ('k') | src/base/platform/mutex.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698