Index: runtime/vm/pages.h |
diff --git a/runtime/vm/pages.h b/runtime/vm/pages.h |
index 0d0d4ddf1d16c76862e2b581aee207b136c42377..cd2b8cb60fb96fb0d5a7b14b91520a2b372ab387 100644 |
--- a/runtime/vm/pages.h |
+++ b/runtime/vm/pages.h |
@@ -424,7 +424,9 @@ class PageSpace { |
// Keep track of running MarkSweep tasks. |
Monitor* tasks_lock_; |
intptr_t tasks_; |
- |
+#if defined(DEBUG) |
+ bool is_iterating_; |
+#endif |
PageSpaceController page_space_controller_; |
int64_t gc_time_micros_; |
@@ -433,6 +435,7 @@ class PageSpace { |
friend class ExclusivePageIterator; |
friend class ExclusiveCodePageIterator; |
friend class ExclusiveLargePageIterator; |
+ friend class HeapIterationScope; |
friend class PageSpaceController; |
friend class SweeperTask; |