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

Unified Diff: src/heap/mark-compact.cc

Issue 1409363003: [heap] Add concurrency-safe refilling to compaction spaces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index f64ed35be1b37b0938c2e6dc74f10aff2f755a08..e0012900b99fb5ce2afc65ab8239ed9294eb4e30 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -547,6 +547,14 @@ void MarkCompactCollector::SweepOrWaitUntilSweepingCompleted(Page* page) {
}
+void MarkCompactCollector::SweepAndRefill(CompactionSpace* space) {
+ if (!heap()->concurrent_sweeping_enabled() || !IsSweepingCompleted()) {
Hannes Payer (out of office) 2015/10/22 11:05:13 Let's factor this condition out into a separate fu
Michael Lippautz 2015/10/22 12:50:38 As discussed offline, the condition we want is act
+ SweepInParallel(heap()->paged_space(space->identity()), 0);
+ }
+ space->RefillFreeList();
+}
+
+
void MarkCompactCollector::EnsureSweepingCompleted() {
DCHECK(sweeping_in_progress_ == true);
« no previous file with comments | « src/heap/mark-compact.h ('k') | src/heap/spaces.h » ('j') | src/heap/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698