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

Unified Diff: src/heap/heap.cc

Issue 2937433002: [heap] Register an idle embedder garbage collection when starting incremental marking through reach… (Closed)
Patch Set: Created 3 years, 6 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 | src/heap/spaces.cc » ('j') | 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 f1b318046b47cd6cac20e2d886e0b466a105bbfa..e68f8ec2067c9791b295727f9192f8c6698cea82 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1068,8 +1068,8 @@ bool Heap::CollectGarbage(GarbageCollector collector,
// causes another mark-compact.
if (IsYoungGenerationCollector(collector) &&
!ShouldAbortIncrementalMarking()) {
- StartIncrementalMarkingIfAllocationLimitIsReached(kNoGCFlags,
- kNoGCCallbackFlags);
+ StartIncrementalMarkingIfAllocationLimitIsReached(
+ kNoGCFlags, kGCCallbackScheduleIdleGarbageCollection);
}
return next_gc_likely_to_collect_more;
« no previous file with comments | « no previous file | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698