| Index: src/heap-profiler.cc
|
| diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc
|
| index 8f55ce1ce49356b581a6d56731e37e91638e191d..f80c9a07bf97182386dd921e99b2c14cf521e73f 100644
|
| --- a/src/heap-profiler.cc
|
| +++ b/src/heap-profiler.cc
|
| @@ -576,8 +576,10 @@ void RetainerHeapProfile::PrintStats() {
|
| void HeapProfiler::CollectStats(HeapObject* obj, HistogramInfo* info) {
|
| InstanceType type = obj->map()->instance_type();
|
| ASSERT(0 <= type && type <= LAST_TYPE);
|
| - info[type].increment_number(1);
|
| - info[type].increment_bytes(obj->Size());
|
| + if (!FreeListNode::IsFreeListNode(obj)) {
|
| + info[type].increment_number(1);
|
| + info[type].increment_bytes(obj->Size());
|
| + }
|
| }
|
|
|
|
|
|
|