Index: runtime/vm/gc_marker.cc |
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc |
index 00bf6cc72348b3c2f5d863cc40bbddbf3a4718e6..319716ee0d5c758f717bc1769f4bbad9aedec88c 100644 |
--- a/runtime/vm/gc_marker.cc |
+++ b/runtime/vm/gc_marker.cc |
@@ -534,6 +534,7 @@ class ObjectIdRingClearPointerVisitor : public ObjectPointerVisitor { |
void GCMarker::ProcessObjectIdTable(Isolate* isolate) { |
+#ifndef PRODUCT |
if (!FLAG_support_service) { |
return; |
} |
@@ -541,6 +542,7 @@ void GCMarker::ProcessObjectIdTable(Isolate* isolate) { |
ObjectIdRing* ring = isolate->object_id_ring(); |
ASSERT(ring != NULL); |
ring->VisitPointers(&visitor); |
+#endif // !PRODUCT |
} |