| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 4f85705fcdfe2d6aa5bf51372cb40e38e4e21cad..0f59cb290217a69bb93b4f60cce38ee06b98b41c 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -1131,16 +1131,16 @@ static void VerifyNonPointerSpacePointers() {
|
| // do not expect them.
|
| VerifyNonPointerSpacePointersVisitor v;
|
| HeapObjectIterator code_it(HEAP->code_space());
|
| - for (HeapObject* object = code_it.Next();
|
| - object != NULL; object = code_it.Next())
|
| + for (HeapObject* object = code_it.NextIgnoreEvacuationCandidates();
|
| + object != NULL; object = code_it.NextIgnoreEvacuationCandidates())
|
| object->Iterate(&v);
|
|
|
| // The old data space was normally swept conservatively so that the iterator
|
| // doesn't work, so we normally skip the next bit.
|
| if (!HEAP->old_data_space()->was_swept_conservatively()) {
|
| HeapObjectIterator data_it(HEAP->old_data_space());
|
| - for (HeapObject* object = data_it.Next();
|
| - object != NULL; object = data_it.Next())
|
| + for (HeapObject* object = data_it.NextIgnoreEvacuationCandidates();
|
| + object != NULL; object = data_it.NextIgnoreEvacuationCandidates())
|
| object->Iterate(&v);
|
| }
|
| }
|
|
|