| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 958d0f8c948adef6d75ba3078f67be22aefa723d..a5439be5afdcf983ff3fae1acaa2d814bf9a2c40 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -4179,14 +4179,13 @@ void Heap::RegisterReservationsForBlackAllocation(Reservation* reservations) {
|
| // Hence we have to color all objects of the reservation first black to avoid
|
| // unnecessary marking deque load.
|
| if (incremental_marking()->black_allocation()) {
|
| - for (int i = CODE_SPACE; i < Serializer::kNumberOfSpaces; i++) {
|
| + for (int i = OLD_SPACE; i < Serializer::kNumberOfSpaces; i++) {
|
| const Heap::Reservation& res = reservations[i];
|
| for (auto& chunk : res) {
|
| Address addr = chunk.start;
|
| while (addr < chunk.end) {
|
| HeapObject* obj = HeapObject::FromAddress(addr);
|
| Marking::MarkBlack(ObjectMarking::MarkBitFrom(obj));
|
| - MemoryChunk::IncrementLiveBytesFromGC(obj, obj->Size());
|
| addr += obj->Size();
|
| }
|
| }
|
|
|