Index: Source/wtf/ThreadRestrictionVerifier.h |
diff --git a/Source/wtf/ThreadRestrictionVerifier.h b/Source/wtf/ThreadRestrictionVerifier.h |
index e62261ca7429c3b954d8402fcfb28242e6821a0e..c8f8437e08e51a4d5155b2eca5c9aa158a6b6ac6 100644 |
--- a/Source/wtf/ThreadRestrictionVerifier.h |
+++ b/Source/wtf/ThreadRestrictionVerifier.h |
@@ -31,9 +31,10 @@ |
#ifndef ThreadRestrictionVerifier_h |
#define ThreadRestrictionVerifier_h |
-#ifndef NDEBUG |
- |
#include "wtf/Assertions.h" |
+ |
+#if ENABLE(ASSERT) |
+ |
#include "wtf/Threading.h" |
namespace WTF { |
@@ -53,9 +54,7 @@ public: |
// Indicates that the object may (or may not) be owned by more than one place. |
void setShared(bool shared) |
{ |
-#if ASSERT_ENABLED |
Ken Russell (switch to Gerrit)
2014/07/15 23:25:35
This entire file was essentially guarded under ASS
|
bool previouslyShared = m_shared; |
-#endif |
m_shared = shared; |
if (!m_shared) |