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

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

Issue 1275863002: Oilpan: catch some self-referential leaks (main thread.) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add stdio.h include Created 5 years, 4 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 | « Source/platform/heap/Handle.h ('k') | Source/platform/heap/PersistentNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/PersistentNode.h
diff --git a/Source/platform/heap/PersistentNode.h b/Source/platform/heap/PersistentNode.h
index 338adf2b4ca7ba114ac580986d81928571d3d502..da8f3655f63fc72ca1d384fe2487d6b8f5a3ca56 100644
--- a/Source/platform/heap/PersistentNode.h
+++ b/Source/platform/heap/PersistentNode.h
@@ -82,6 +82,11 @@ public:
return m_self;
}
+ TraceCallback traceCallback() const
+ {
+ return m_trace;
+ }
+
private:
// If this PersistentNode is in use:
// - m_self points to the corresponding Persistent handle.
@@ -144,6 +149,10 @@ public:
void tracePersistentNodes(Visitor*);
int numberOfPersistents();
+#ifndef NDEBUG
+ void dumpLivePersistents();
+#endif
+
private:
friend CrossThreadPersistentRegion;
« no previous file with comments | « Source/platform/heap/Handle.h ('k') | Source/platform/heap/PersistentNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698