Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1180)

Unified Diff: runtime/vm/pages.h

Issue 1212943010: Safer interface for heap iteration. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix release mode. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698