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

Unified Diff: src/heap/spaces.cc

Issue 1352453004: Perform scavenge in idle tasks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 8f75d5fd630b1a7c627de902d79850807b23845a..9c9a71dc6b88b4493a91f9cb46eb498c6ebed3c4 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -1557,6 +1557,7 @@ bool NewSpace::EnsureAllocation(int size_in_bytes,
// the new limit accordingly.
Address new_top = old_top + aligned_size_in_bytes;
int bytes_allocated = static_cast<int>(new_top - top_on_previous_step_);
+ heap()->ScheduleIdleScavenge(bytes_allocated);
Hannes Payer (out of office) 2015/09/21 09:00:57 Hmm, when incremental marking is on, steps will be
ulan 2015/09/23 09:58:38 The function already checks the bytes allocated. C
heap()->incremental_marking()->Step(bytes_allocated,
IncrementalMarking::GC_VIA_STACK_GUARD);
UpdateInlineAllocationLimit(aligned_size_in_bytes);

Powered by Google App Engine
This is Rietveld 408576698