Reviewers: Lasse Reichstein,
Description:
Do nothing in IncrementalMarking::Step when we are not marking or sweeping.
[email protected]
Please review this at http://codereview.chromium.org/7324049/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/gc
Affected files:
M src/incremental-marking.cc
Index: src/incremental-marking.cc
diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc
index
0e53a380ac717a7741ddf172327a821dc0631d94..a35fe52d1bbf55265767b93f8157e8757cd5babd
100644
--- a/src/incremental-marking.cc
+++ b/src/incremental-marking.cc
@@ -539,6 +539,7 @@ void IncrementalMarking::Step(intptr_t allocated_bytes)
{
if (heap_->gc_state() != Heap::NOT_IN_GC) return;
if (!FLAG_incremental_marking) return;
if (!FLAG_incremental_marking_steps) return;
+ if (state_ != SWEEPING && state_ != MARKING) return;
allocated_ += allocated_bytes;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev