Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index c394a2c60b7a4177e43691c211826112118fe8b0..97fd1f8fe3768619c6b6a137844656ca65356af6 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -5318,8 +5318,7 @@ bool Heap::IdleNotification(int hint) { |
AgeInlineCaches(); |
} |
int mark_sweep_time = Min(TimeMarkSweepWouldTakeInMs(), 1000); |
- if (hint >= mark_sweep_time && !FLAG_expose_gc && |
- incremental_marking()->IsStopped()) { |
+ if (hint >= mark_sweep_time && incremental_marking()->IsStopped()) { |
HistogramTimerScope scope(isolate_->counters()->gc_context()); |
CollectAllGarbage(kReduceMemoryFootprintMask, |
"idle notification: contexts disposed"); |
@@ -5338,7 +5337,7 @@ bool Heap::IdleNotification(int hint) { |
return false; |
} |
- if (!FLAG_incremental_marking || FLAG_expose_gc || Serializer::enabled()) { |
+ if (!FLAG_incremental_marking || Serializer::enabled()) { |
return IdleGlobalGC(); |
} |