Reviewers: Hannes Payer,

Message:
PTAL

Description:
Perform full GC in background idle notification.

BUG=chromium:515873
LOG=NO

Please review this at https://codereview.chromium.org/1263373002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+2, -8 lines):
  M src/heap/memory-reducer.cc


Index: src/heap/memory-reducer.cc
diff --git a/src/heap/memory-reducer.cc b/src/heap/memory-reducer.cc
index 7063fc4b2eb5c549ad6c1ba26e350461a4c824da..8686b7d4ccbebab87ac5cf089fdee78887b8d566 100644
--- a/src/heap/memory-reducer.cc
+++ b/src/heap/memory-reducer.cc
@@ -95,14 +95,8 @@ void MemoryReducer::NotifyBackgroundIdleNotification(const Event& event) {
   if (old_action == kWait && state_.action == kWait &&
       old_started_gcs + 1 == state_.started_gcs) {
     DCHECK(heap()->incremental_marking()->IsStopped());
-    DCHECK(FLAG_incremental_marking);
-    heap()->StartIdleIncrementalMarking();
-    if (FLAG_trace_gc_verbose) {
-      PrintIsolate(heap()->isolate(),
-                   "Memory reducer: started GC #%d"
-                   " (background idle)\n",
-                   state_.started_gcs);
-    }
+    heap()->CollectAllGarbage(Heap::kReduceMemoryFootprintMask,
+                              "memory reducer background GC");
   }
 }



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to