Reviewers: Hannes Payer,

Description:
Do nothing when sweeping is in progress.

We still try to do incremental steps before this patch (as incremental
marking is in state "Sweeping" and not "stopped")

BUG=none
[email protected]
LOG=n

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

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

Affected files (+5, -2 lines):
  M src/heap/gc-idle-time-handler.cc


Index: src/heap/gc-idle-time-handler.cc
diff --git a/src/heap/gc-idle-time-handler.cc b/src/heap/gc-idle-time-handler.cc index 568cd3f29a07483752f7bae43d03ecd9c70ea650..8f17b7afdaa95d92436169420b5880a104b6e231 100644
--- a/src/heap/gc-idle-time-handler.cc
+++ b/src/heap/gc-idle-time-handler.cc
@@ -244,8 +244,11 @@ GCIdleTimeAction GCIdleTimeHandler::Compute(double idle_time_in_ms,
     }
   }

-  if (heap_state.sweeping_in_progress && heap_state.sweeping_completed) {
-    return GCIdleTimeAction::FinalizeSweeping();
+  if (heap_state.sweeping_in_progress) {
+    if (heap_state.sweeping_completed) {
+      return GCIdleTimeAction::FinalizeSweeping();
+    }
+    return GCIdleTimeAction::Nothing();
   }

   if (heap_state.incremental_marking_stopped &&


--
--
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