Index: runtime/vm/gc_marker.cc |
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc |
index e9f33c380da5cdf4c57a110af8e603dea9327d1b..6fcc90cb85d67f4ca7601f1354bfb79b95220984 100644 |
--- a/runtime/vm/gc_marker.cc |
+++ b/runtime/vm/gc_marker.cc |
@@ -562,6 +562,9 @@ class ObjectIdRingClearPointerVisitor : public ObjectPointerVisitor { |
void GCMarker::ProcessObjectIdTable(Isolate* isolate) { |
+ if (!FLAG_support_service) { |
+ return; |
+ } |
ObjectIdRingClearPointerVisitor visitor(isolate); |
ObjectIdRing* ring = isolate->object_id_ring(); |
ASSERT(ring != NULL); |