Index: runtime/vm/pages.cc |
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc |
index 810554a448ecd89645530971a8956b32f5c3c0ca..18eec36fe8a23a9102705f2b4ebeb7f99636d6cb 100644 |
--- a/runtime/vm/pages.cc |
+++ b/runtime/vm/pages.cc |
@@ -83,6 +83,7 @@ void HeapPage::Deallocate() { |
void HeapPage::VisitObjects(ObjectVisitor* visitor) const { |
+ NoSafepointScope no_safepoint; |
uword obj_addr = object_start(); |
uword end_addr = object_end(); |
while (obj_addr < end_addr) { |
@@ -95,6 +96,7 @@ void HeapPage::VisitObjects(ObjectVisitor* visitor) const { |
void HeapPage::VisitObjectPointers(ObjectPointerVisitor* visitor) const { |
+ NoSafepointScope no_safepoint; |
uword obj_addr = object_start(); |
uword end_addr = object_end(); |
while (obj_addr < end_addr) { |