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