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

Unified Diff: runtime/vm/heap.h

Issue 1181943002: Assert no allocation during heap iteration; fix unsafe iteration in ObjectGraph. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: spelling fix Created 5 years, 6 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 | « no previous file | runtime/vm/object_graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.h
diff --git a/runtime/vm/heap.h b/runtime/vm/heap.h
index 928e7c5c8cf76e4b23ea64e564d43d02c96351b6..6d8752ca98d3ddd8b27f1762578daf030f13b968 100644
--- a/runtime/vm/heap.h
+++ b/runtime/vm/heap.h
@@ -105,10 +105,13 @@ class Heap {
bool CodeContains(uword addr) const;
bool StubCodeContains(uword addr) const;
- // Visit all pointers.
+ // Visit all pointers. Caller must ensure concurrent sweeper is not running,
+ // and the visitor must not allocate (see issue 21620).
void VisitObjectPointers(ObjectPointerVisitor* visitor) const;
- // Visit all objects.
+ // Visit all objects, including FreeListElement "objects". Caller must ensure
+ // concurrent sweeper is not running, and the visitor must not allocate (see
+ // issue 21620).
void VisitObjects(ObjectVisitor* visitor) const;
// Find an object by visiting all pointers in the specified heap space,
« no previous file with comments | « no previous file | runtime/vm/object_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698