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

Unified Diff: third_party/WebKit/Source/wtf/ThreadingPrimitives.h

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 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 | « third_party/WebKit/Source/wtf/ThreadSpecific.h ('k') | third_party/WebKit/Source/wtf/TreeNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ThreadingPrimitives.h
diff --git a/third_party/WebKit/Source/wtf/ThreadingPrimitives.h b/third_party/WebKit/Source/wtf/ThreadingPrimitives.h
index 86dd8d006303405a01c178dc2109e30054c6ae99..84b72a6f19ff00a2494db3c3e71cb89308541ac3 100644
--- a/third_party/WebKit/Source/wtf/ThreadingPrimitives.h
+++ b/third_party/WebKit/Source/wtf/ThreadingPrimitives.h
@@ -50,7 +50,7 @@ namespace WTF {
#if OS(POSIX)
struct PlatformMutex {
pthread_mutex_t m_internalMutex;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
size_t m_recursionCount;
#endif
};
@@ -85,7 +85,7 @@ class WTF_EXPORT MutexBase {
void lock();
void unlock();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool locked() { return m_mutex.m_recursionCount > 0; }
#endif
« no previous file with comments | « third_party/WebKit/Source/wtf/ThreadSpecific.h ('k') | third_party/WebKit/Source/wtf/TreeNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698