Reviewers: Michael Starzinger,

Description:
Adjust assertion in Heap::IdleNotification.

[email protected]
BUG=v8:1715


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

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

Affected files:
  M src/heap.cc


Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 580a764d334462a5b930aff5cea827151c77d508..15040a37831a9f0f53718d682880fe1a91a26504 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -4597,8 +4597,11 @@ bool Heap::IdleNotification() {

   // Make sure that we have no pending context disposals and
   // conditionally uncommit from space.
-  ASSERT((contexts_disposed_ == 0) || incremental_marking()->IsMarking());
+  // Take into account that we might have decided to delay full collection
+  // because incremental marking is in progress.
+  ASSERT((contexts_disposed_ == 0) || !incremental_marking()->IsStopped());
   if (uncommit) UncommitFromSpace();
+
   return finished;
 }



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

Reply via email to