Reviewers: Hannes Payer,

Description:
Add a check that we make progress during incremental marking

BUG=381820
[email protected]
LOG=n

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

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+4, -1 lines):
  M src/incremental-marking.cc


Index: src/incremental-marking.cc
diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc
index f9575c3ba433393d67990a5edd45d08610c7dfeb..7dd687cce1a52ac96d010974e41d039f79af2e0d 100644
--- a/src/incremental-marking.cc
+++ b/src/incremental-marking.cc
@@ -699,7 +699,10 @@ void IncrementalMarking::ProcessMarkingDeque(intptr_t bytes_to_process) {
     int size = obj->SizeFromMap(map);
     unscanned_bytes_of_large_object_ = 0;
     VisitObject(map, obj, size);
-    bytes_to_process -= (size - unscanned_bytes_of_large_object_);
+    int delta = (size - unscanned_bytes_of_large_object_);
+    // FIXME: remove after http://crbug.com/381820 is resolved.
+    CHECK(0 < delta && delta <= bytes_to_process);
+    bytes_to_process -= delta;
   }
 }



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