Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 79689346507076d9ad80316a2a4888335a6b6dd2..889d1a870609f13ce451a8aa248f332aca58be4c 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -876,7 +876,7 @@ void Object::FinalizeVMIsolate(Isolate* isolate) { |
PremarkingVisitor premarker(isolate); |
isolate->heap()->WriteProtect(false); |
ASSERT(isolate->heap()->UsedInWords(Heap::kNew) == 0); |
- isolate->heap()->old_space()->VisitObjects(&premarker); |
+ isolate->heap()->IterateOldObjects(&premarker); |
isolate->heap()->WriteProtect(true); |
} |