Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 389132ed78c8ded2c0a656089d1f90031cfa13a8..865e67f08b21c13178780903a0171d0cb387ffd1 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -1051,8 +1051,9 @@ void Object::FinalizeVMIsolate(Isolate* isolate) { |
WritableVMIsolateScope scope(Thread::Current()); |
PremarkingVisitor premarker; |
ASSERT(isolate->heap()->UsedInWords(Heap::kNew) == 0); |
- isolate->heap()->IterateOldObjectsNoExternalPages(&premarker); |
+ isolate->heap()->IterateOldObjectsNoImagePages(&premarker); |
// Make the VM isolate read-only again after setting all objects as marked. |
+ // Note objects in image pages are already pre-marked. |
} |
} |