Index: src/heap/incremental-marking-job.cc |
diff --git a/src/heap/incremental-marking-job.cc b/src/heap/incremental-marking-job.cc |
index 43e8b7628f6c862ac4aa4c29354f4e505ec974d1..7e8e5f251f3c591574fd9f20564432a8f05f07e2 100644 |
--- a/src/heap/incremental-marking-job.cc |
+++ b/src/heap/incremental-marking-job.cc |
@@ -53,7 +53,7 @@ void IncrementalMarkingJob::ScheduleIdleTask(Heap* heap) { |
void IncrementalMarkingJob::ScheduleDelayedTask(Heap* heap) { |
- if (!delayed_task_pending_) { |
+ if (!delayed_task_pending_ && FLAG_memory_reducer) { |
v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(heap->isolate()); |
delayed_task_pending_ = true; |
made_progress_since_last_delayed_task_ = false; |