Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: src/incremental-marking.cc

Issue 7324049: Do nothing in IncrementalMarking::Step when we are not marking or sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
Lasse Reichstein 2011/07/12 08:18:32 Are FLAG_incremental_marking and FLAG_incremental_
Vyacheslav Egorov (Chromium) 2011/07/12 09:27:54 They are independent.
+ if (state_ != SWEEPING && state_ != MARKING) return;
Lasse Reichstein 2011/07/12 08:18:32 How about combining all these conditions with || a
Vyacheslav Egorov (Chromium) 2011/07/12 09:27:54 Done.
allocated_ += allocated_bytes;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698