| 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()
|
|
|