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

Unified Diff: Source/platform/heap/ThreadState.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/PersistentNode.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 0c015aeee37db03a46d4f7c03e250cddb3e39ba8..67486a140f72a93fd6b8c6f9c58a1fc71b9ece9a 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -652,6 +652,11 @@ public:
void allocationPointAdjusted(int heapIndex);
void promptlyFreed(size_t gcInfoIndex);
+#if ENABLE(ASSERT)
+ static void incrementSelfKeepAliveAllocations();
+ static void decrementSelfKeepAliveAllocations();
+#endif
+
private:
enum SnapshotType {
HeapSnapshot,
@@ -728,6 +733,9 @@ private:
static uintptr_t s_mainThreadStackStart;
static uintptr_t s_mainThreadUnderestimatedStackSize;
static SafePointBarrier* s_safePointBarrier;
+#if ENABLE(ASSERT)
+ static int s_selfKeepAliveAllocationsOnMainThread;
+#endif
// We can't create a static member of type ThreadState here
// because it will introduce global constructor and destructor.
« no previous file with comments | « Source/platform/heap/PersistentNode.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698