| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (C) 2008 Apple Inc. All rights reserved. | 2  *  Copyright (C) 2008 Apple Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  *  This library is free software; you can redistribute it and/or | 4  *  This library is free software; you can redistribute it and/or | 
| 5  *  modify it under the terms of the GNU Library General Public | 5  *  modify it under the terms of the GNU Library General Public | 
| 6  *  License as published by the Free Software Foundation; either | 6  *  License as published by the Free Software Foundation; either | 
| 7  *  version 2 of the License, or (at your option) any later version. | 7  *  version 2 of the License, or (at your option) any later version. | 
| 8  * | 8  * | 
| 9  *  This library is distributed in the hope that it will be useful, | 9  *  This library is distributed in the hope that it will be useful, | 
| 10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 38 RefCountedLeakCounter::~RefCountedLeakCounter() { } | 38 RefCountedLeakCounter::~RefCountedLeakCounter() { } | 
| 39 | 39 | 
| 40 void RefCountedLeakCounter::increment() { } | 40 void RefCountedLeakCounter::increment() { } | 
| 41 void RefCountedLeakCounter::decrement() { } | 41 void RefCountedLeakCounter::decrement() { } | 
| 42 | 42 | 
| 43 #else | 43 #else | 
| 44 | 44 | 
| 45 #define LOG_CHANNEL_PREFIX Log | 45 #define LOG_CHANNEL_PREFIX Log | 
| 46 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelOn }; | 46 static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelOn }; | 
| 47 | 47 | 
| 48 typedef HashCountedSet<const char*, PtrHash<const char*> > ReasonSet; | 48 typedef HashCountedSet<const char*, PtrHash<const char*>> ReasonSet; | 
| 49 static ReasonSet* leakMessageSuppressionReasons; | 49 static ReasonSet* leakMessageSuppressionReasons; | 
| 50 | 50 | 
| 51 void RefCountedLeakCounter::suppressMessages(const char* reason) | 51 void RefCountedLeakCounter::suppressMessages(const char* reason) | 
| 52 { | 52 { | 
| 53     if (!leakMessageSuppressionReasons) | 53     if (!leakMessageSuppressionReasons) | 
| 54         leakMessageSuppressionReasons = new ReasonSet; | 54         leakMessageSuppressionReasons = new ReasonSet; | 
| 55     leakMessageSuppressionReasons->add(reason); | 55     leakMessageSuppressionReasons->add(reason); | 
| 56 } | 56 } | 
| 57 | 57 | 
| 58 void RefCountedLeakCounter::cancelMessageSuppression(const char* reason) | 58 void RefCountedLeakCounter::cancelMessageSuppression(const char* reason) | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 87 } | 87 } | 
| 88 | 88 | 
| 89 void RefCountedLeakCounter::decrement() | 89 void RefCountedLeakCounter::decrement() | 
| 90 { | 90 { | 
| 91     atomicDecrement(&m_count); | 91     atomicDecrement(&m_count); | 
| 92 } | 92 } | 
| 93 | 93 | 
| 94 #endif | 94 #endif | 
| 95 | 95 | 
| 96 } // namespace WTF | 96 } // namespace WTF | 
| OLD | NEW | 
|---|