Chromium Code Reviews| Index: Source/platform/heap/Heap.cpp |
| diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp |
| index db7500b6eab5290571dac931d636219b156ae153..68c15fd05b2b7d3601c9db99445b8c2b6f9d99e5 100644 |
| --- a/Source/platform/heap/Heap.cpp |
| +++ b/Source/platform/heap/Heap.cpp |
| @@ -2019,7 +2019,8 @@ void Heap::collectGarbage(ThreadState::StackState stackState, ThreadState::GCTyp |
| StackFrameDepthScope stackDepthScope; |
| size_t totalObjectSize = Heap::allocatedObjectSize() + Heap::markedObjectSize(); |
| - Heap::resetHeapCounters(); |
| + if (gcType == ThreadState::TakeSnapshot) |
|
ssid
2015/06/18 12:01:07
Do you mean != ?
With !=,
The allocatedObjectSize
haraken
2015/06/18 18:43:43
Nice catch!
|
| + Heap::resetHeapCounters(); |
| // 1. Trace persistent roots. |
| ThreadState::visitPersistentRoots(gcScope.visitor()); |