Reviewers: Vyacheslav Egorov,

Description:
Reduce LiveBytes assert to one that only triggers if the miscalculation is
dangerous.  This is issue 1672.

Please review this at http://codereview.chromium.org/8079007/

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

Affected files:
  M     src/spaces.cc


Index: src/spaces.cc
===================================================================
--- src/spaces.cc       (revision 9487)
+++ src/spaces.cc       (working copy)
@@ -839,7 +839,8 @@
       ASSERT(object->address() + size <= top);
       end_of_previous_object = object->address() + size;
     }
-    ASSERT_LE(black_size, page->LiveBytes());
+    // TODO(1672): Remove the non-zero part of this.
+    ASSERT(page->LiveBytes() != 0 || black_size <= page->LiveBytes());
   }
   ASSERT(allocation_pointer_found_in_space);
 }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to