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

Unified Diff: src/heap/heap.cc

Issue 2723003003: [heap] Do not delay mark-compact by doing scavenge. (Closed)
Patch Set: Created 3 years, 10 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/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 5ba199a3c106aea8c0414d334637fefa52515338..7efdff037836f573986838273537365bbf8c1ba1 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -990,24 +990,6 @@ bool Heap::CollectGarbage(GarbageCollector collector,
}
}
- if (collector == MARK_COMPACTOR && FLAG_incremental_marking &&
- !ShouldFinalizeIncrementalMarking() && !ShouldAbortIncrementalMarking() &&
- !incremental_marking()->IsStopped() &&
- !incremental_marking()->should_hurry() &&
- !incremental_marking()->NeedsFinalization() &&
- !IsCloseToOutOfMemory(new_space_->Capacity())) {
- if (!incremental_marking()->IsComplete() &&
- !mark_compact_collector()->marking_deque()->IsEmpty() &&
- !FLAG_gc_global) {
- if (FLAG_trace_incremental_marking) {
- isolate()->PrintWithTimestamp(
- "[IncrementalMarking] Delaying MarkSweep.\n");
- }
- collector = YoungGenerationCollector();
- collector_reason = "incremental marking delaying mark-sweep";
- }
- }
-
bool next_gc_likely_to_collect_more = false;
size_t committed_memory_before = 0;
« 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