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

Unified Diff: src/mark-compact.h

Issue 404083002: Wait for sweeper threads when a scan on scavenge page is not swept. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index 1145badba6b9429f5d47bf8cc217c53ce4285ea6..638076f0b07ac6f63f0e8f5f0390c2e8daa4561a 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -658,9 +658,14 @@ class MarkCompactCollector {
// Concurrent and parallel sweeping support. If required_freed_bytes was set
// to a value larger than 0, then sweeping returns after a block of at least
// required_freed_bytes was freed. If required_freed_bytes was set to zero
- // then the whole given space is swept.
+ // then the whole given space is swept. It returns the size of the maximum
+ // continuous freed memory chunk.
int SweepInParallel(PagedSpace* space, int required_freed_bytes);
+ // Sweeps a given page concurrently to the sweeper threads. It returns the
+ // size of the maximum continuous freed memory chunk.
+ int SweepInParallel(Page* page, PagedSpace* space);
+
void EnsureSweepingCompleted();
// If sweeper threads are not active this method will return true. If
« no previous file with comments | « no previous file | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698