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

Unified Diff: src/heap.cc

Issue 204513002: Introduce --always-incremental-marking flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « src/flag-definitions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 4855ac08aeb8e1a56b23df4e527edd97208e977e..a3113c8177964beb2890fafc720870fedee6b45d 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -860,10 +860,11 @@ bool Heap::CollectGarbage(GarbageCollector collector,
// Start incremental marking for the next cycle. The heap snapshot
// generator needs incremental marking to stay off after it aborted.
- if (!mark_compact_collector()->abort_incremental_marking() &&
- incremental_marking()->IsStopped() &&
- incremental_marking()->WorthActivating() &&
- NextGCIsLikelyToBeFull()) {
+ if (incremental_marking()->IsStopped() &&
+ (FLAG_always_incremental_marking ||
+ (!mark_compact_collector()->abort_incremental_marking() &&
+ incremental_marking()->WorthActivating() &&
+ NextGCIsLikelyToBeFull()))) {
incremental_marking()->Start();
}
« no previous file with comments | « src/flag-definitions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698