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

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

Issue 1409363003: [heap] Add concurrency-safe refilling to compaction spaces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index da75d6c983c983518e88893d6ed520db9ff76080..3a3f8e2a4542c2b3739ecd8dce507926dd0a1279 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -457,10 +457,19 @@ class MarkCompactCollector {
// size of the maximum continuous freed memory chunk.
int SweepInParallel(Page* page, PagedSpace* space);
+ // Ensures that sweeping is finished.
+ //
+ // Note: Can only be called safely from main thread.
void EnsureSweepingCompleted();
void SweepOrWaitUntilSweepingCompleted(Page* page);
+ // Help out in sweeping the corresponding space and refill memory that has
+ // been regained.
+ //
+ // Note: Thread-safe.
+ void SweepAndRefill(CompactionSpace* space);
+
// If sweeper threads are not active this method will return true. If
// this is a latency issue we should be smarter here. Otherwise, it will
// return true if the sweeper threads are done processing the pages.
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698