Chromium Code Reviews| Index: third_party/WebKit/Source/platform/heap/PersistentNode.h |
| diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h |
| index ae2f68370704f448034d21e66c4c25474a897f5b..b13c76fa877e83111bbed542cb90984140fda83b 100644 |
| --- a/third_party/WebKit/Source/platform/heap/PersistentNode.h |
| +++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h |
| @@ -130,7 +130,9 @@ class PLATFORM_EXPORT PersistentRegion final { |
| } |
| void freePersistentNode(PersistentNode* persistentNode) { |
| - ASSERT(m_persistentCount > 0); |
| +#if DCHECK_IS_ON() |
| + DCHECK_GT(m_persistentCount, 0); |
|
Alexander Alekseev
2016/11/23 07:53:07
This variable exists only if DCHECK_IS_ON() evalua
|
| +#endif |
| persistentNode->setFreeListNext(m_freeListHead); |
| m_freeListHead = persistentNode; |
| #if DCHECK_IS_ON() |