Revision: 8617
Author: [email protected]
Date: Tue Jul 12 02:27:33 2011
Log: Do nothing in IncrementalMarking::Step when we are not marking or
sweeping.
[email protected]
Review URL: http://codereview.chromium.org/7324049
http://code.google.com/p/v8/source/detail?r=8617
Modified:
/branches/experimental/gc/src/incremental-marking.cc
=======================================
--- /branches/experimental/gc/src/incremental-marking.cc Wed Jul 6
13:56:48 2011
+++ /branches/experimental/gc/src/incremental-marking.cc Tue Jul 12
02:27:33 2011
@@ -536,9 +536,12 @@
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 (heap_->gc_state() != Heap::NOT_IN_GC ||
+ !FLAG_incremental_marking ||
+ !FLAG_incremental_marking_steps ||
+ (state_ != SWEEPING && state_ != MARKING)) {
+ return;
+ }
allocated_ += allocated_bytes;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev