Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 10cb4738abdf66c07be84b3900eeb9dd2d95c553..fdb7d2e11576159885760d401f7c8e386f494b81 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -5720,7 +5720,7 @@ bool Heap::IdleNotification(int hint) { |
AgeInlineCaches(); |
} |
int mark_sweep_time = Min(TimeMarkSweepWouldTakeInMs(), 1000); |
- if (hint >= mark_sweep_time && !FLAG_expose_gc && |
+ if (hint >= mark_sweep_time && !FLAG_expose_gc && !FLAG_expose_gc_as && |
incremental_marking()->IsStopped()) { |
HistogramTimerScope scope(isolate_->counters()->gc_context()); |
CollectAllGarbage(kReduceMemoryFootprintMask, |