Index: src/heap/gc-tracer.cc |
diff --git a/src/heap/gc-tracer.cc b/src/heap/gc-tracer.cc |
index 6d7231e9eda6ffb949bc6c389961c736ba0e0461..046ac2cd225766d3f3a422df495c1ac37e13a1d9 100644 |
--- a/src/heap/gc-tracer.cc |
+++ b/src/heap/gc-tracer.cc |
@@ -490,7 +490,7 @@ intptr_t GCTracer::NewSpaceAllocationThroughputInBytesPerMillisecond() const { |
double GCTracer::ContextDisposalRateInMilliseconds() const { |
- if (context_disposal_events_.size() == 0) return 0.0; |
+ if (context_disposal_events_.size() < kRingBufferMaxSize) return 0.0; |
double begin = base::OS::TimeCurrentMillis(); |
double end = 0.0; |