| Index: src/heap/incremental-marking.cc
|
| diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
|
| index 5294d1d9c9d1df445b668d0ec3232fe90d628d94..722ec9d8c63f8e2ebd9099a7a81de8794f9f5615 100644
|
| --- a/src/heap/incremental-marking.cc
|
| +++ b/src/heap/incremental-marking.cc
|
| @@ -186,13 +186,9 @@ class IncrementalMarkingMarkingVisitor
|
|
|
| static void VisitFixedArrayIncremental(Map* map, HeapObject* object) {
|
| MemoryChunk* chunk = MemoryChunk::FromAddress(object->address());
|
| - // TODO(mstarzinger): Move setting of the flag to the allocation site of
|
| - // the array. The visitor should just check the flag.
|
| - if (FLAG_use_marking_progress_bar &&
|
| - chunk->owner()->identity() == LO_SPACE) {
|
| - chunk->SetFlag(MemoryChunk::HAS_PROGRESS_BAR);
|
| - }
|
| if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) {
|
| + DCHECK(!FLAG_use_marking_progress_bar ||
|
| + chunk->owner()->identity() == LO_SPACE);
|
| Heap* heap = map->GetHeap();
|
| // When using a progress bar for large fixed arrays, scan only a chunk of
|
| // the array and try to push it onto the marking deque again until it is
|
|
|