Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index 2633f255980438e6a322aa8395d86e7678f70eed..fb344e1a286962e3243d424e8e4c06c5ca289997 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -129,6 +129,7 @@ const char* Dart::InitOnce(Dart_IsolateCreateCallback create, |
} |
#endif |
PremarkingVisitor premarker(vm_isolate_); |
+ vm_isolate_->heap()->WriteProtect(false); |
vm_isolate_->heap()->IterateOldObjects(&premarker); |
vm_isolate_->heap()->WriteProtect(true); |
} |