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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentNode.h

Issue 1674113002: Conditionally define PersistentNode destructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5fb806f8785784d323f997af1a5ba8c6a76a9b93..62d176d18f1ff5cc9fd0b762e6645167223de631 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
@@ -26,6 +26,7 @@ public:
ASSERT(isUnused());
}
+#if ENABLE(ASSERT)
~PersistentNode()
{
// If you hit this assert, it means that the thread finished
@@ -34,8 +35,9 @@ public:
// main thread finishes without clearing all persistent handles.
ASSERT(isMainThread() || isUnused());
}
+#endif
- // It is dangrous to copy the PersistentNode because it breaks the
+ // It is dangerous to copy the PersistentNode because it breaks the
// free list.
PersistentNode& operator=(const PersistentNode& otherref) = delete;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698