Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index a90b7d6387d8510890da0516e4866b27af9cfc8f..99216fef5b186321b54e1a2a043edab52409432d 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3108,6 +3108,7 @@ void Heap::AdjustLiveBytes(HeapObject* object, int by, InvocationMode mode) { |
// update while using HeapIterator because the iterator is temporarily |
// marking the whole object graph, without updating live bytes. |
if (!in_heap_iterator() && |
+ !mark_compact_collector()->sweeping_in_progress() && |
Marking::IsBlack(Marking::MarkBitFrom(object->address()))) { |
if (mode == SEQUENTIAL_TO_SWEEPER) { |
MemoryChunk::IncrementLiveBytesFromGC(object, by); |