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, |