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

Unified Diff: Source/platform/heap/ThreadState.cpp

Issue 634243004: Oilpan: Simplify Heap::allocate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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
« Source/platform/heap/HeapTest.cpp ('K') | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index d44b9c4907175ea60e8c7450a30e57d23c14e600..8799330e85456dbcdeb0f52d49b281e726c018ad 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -911,14 +911,13 @@ BaseHeapPage* ThreadState::heapPageFromAddress(Address address)
void ThreadState::getStats(HeapStats& stats)
{
stats = m_stats;
-#if ENABLE(ASSERT)
- if (isConsistentForSweeping()) {
- HeapStats scannedStats;
- for (int i = 0; i < NumberOfHeaps; i++)
- m_heaps[i]->getScannedStats(scannedStats);
- ASSERT(scannedStats == stats);
- }
-#endif
+}
+
+void ThreadState::getStatsForTesting(HeapStats& stats)
+{
+ ASSERT(isConsistentForSweeping());
+ for (int i = 0; i < NumberOfHeaps; i++)
+ m_heaps[i]->getStatsForTesting(stats);
}
bool ThreadState::stopThreads()
« Source/platform/heap/HeapTest.cpp ('K') | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698