| Index: runtime/vm/object_graph.cc
|
| diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc
|
| index cd9fdeef36e5b67626e3bdb59d89f3f2fd07f9b1..ae3678abf7b67dd4e21f3eb0af31c10f051fdb37 100644
|
| --- a/runtime/vm/object_graph.cc
|
| +++ b/runtime/vm/object_graph.cc
|
| @@ -550,7 +550,8 @@ class WriteGraphVisitor : public ObjectGraph::Visitor {
|
| REUSABLE_OBJECT_HANDLESCOPE(thread);
|
| Object& obj = thread->ObjectHandle();
|
| obj = raw_obj;
|
| - if ((roots_ == ObjectGraph::kVM) || obj.IsField() || obj.IsInstance()) {
|
| + if ((roots_ == ObjectGraph::kVM) || obj.IsField() || obj.IsInstance() ||
|
| + obj.IsContext()) {
|
| // Each object is a header + a zero-terminated list of its neighbors.
|
| WriteHeader(raw_obj, raw_obj->Size(), obj.GetClassId(), stream_);
|
| raw_obj->VisitPointers(&ptr_writer_);
|
|
|