Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index fc78a4879bb26214aa9c91ff5025ea6899a97b91..8b3f77f6662dab92d5fe488dea598b52ad4a0f82 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -2217,7 +2217,7 @@ class GetInstancesVisitor : public ObjectGraph::Visitor { |
virtual Direction VisitObject(ObjectGraph::StackIterator* it) { |
RawObject* raw_obj = it->Get(); |
- if (raw_obj->IsFreeListElement()) { |
+ if (raw_obj->IsPseudoObject()) { |
return kProceed; |
} |
Thread* thread = Thread::Current(); |
@@ -3341,8 +3341,7 @@ class ContainsAddressVisitor : public FindObjectVisitor { |
virtual uword filter_addr() const { return addr_; } |
virtual bool FindObject(RawObject* obj) const { |
- // Free list elements are not real objects, so skip them. |
- if (obj->IsFreeListElement()) { |
+ if (obj->IsPseudoObject()) { |
return false; |
} |
uword obj_begin = RawObject::ToAddr(obj); |