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

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
« no previous file with comments | « 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 60f6eca1fd0e166c6b6cb9ebf9d25e059b081568..a70e461e929c49e9012dd2252573aa31be6fc5e9 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -902,14 +902,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()
« no previous file with comments | « Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698