Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index e90a23d8a497c7badda4638fb70741014599f4ee..450a58cb06cdd3bf59fe61fe62db7dedb0064151 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -1703,6 +1703,7 @@ static void DiscoverGreyObjectsWithIterator(Heap* heap, |
MarkBit markbit = Marking::MarkBitFrom(object); |
if ((object->map() != filler_map) && Marking::IsGrey(markbit)) { |
Marking::GreyToBlack(markbit); |
+ MemoryChunk::IncrementLiveBytes(object->address(), object->Size()); |
marking_deque->PushBlack(object); |
if (marking_deque->IsFull()) return; |
} |
@@ -1753,7 +1754,9 @@ static void DiscoverGreyObjectsOnPage(MarkingDeque* marking_deque, Page* p) { |
ASSERT(Marking::IsGrey(markbit)); |
Marking::GreyToBlack(markbit); |
Address addr = cell_base + offset * kPointerSize; |
- marking_deque->PushBlack(HeapObject::FromAddress(addr)); |
+ HeapObject* object = HeapObject::FromAddress(addr); |
+ MemoryChunk::IncrementLiveBytes(object->address(), object->Size()); |
+ marking_deque->PushBlack(object); |
if (marking_deque->IsFull()) return; |
offset += 2; |
grey_objects >>= 2; |