Index: runtime/vm/heap.cc |
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc |
index 4ff00802fd58ff3f9f8845c29ab441d81187b43c..3b92f94e1cbcb1537f2d98ab2c775e52f7bcbafb 100644 |
--- a/runtime/vm/heap.cc |
+++ b/runtime/vm/heap.cc |
@@ -620,7 +620,7 @@ void Heap::RecordAfterGC() { |
stats_.after_.old_ = old_space_->GetCurrentUsage(); |
ASSERT(gc_in_progress_); |
gc_in_progress_ = false; |
- if (Service::NeedsEvents()) { |
+ if (Service::NeedsGCEvents()) { |
ServiceEvent event(Isolate::Current(), ServiceEvent::kGC); |
event.set_gc_stats(&stats_); |
Service::HandleEvent(&event); |