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

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

Issue 1446523003: [heap] Use cancelable tasks during compaction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added StartParallelCompaction Created 5 years, 1 month 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 fb562bf6876104ba42101902387b571c30bdc619..2ae508193bd41ab6c61764f4cd18bbb1e227bb12 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -718,7 +718,10 @@ class MarkCompactCollector {
// The number of parallel compaction tasks, including the main thread.
int NumberOfParallelCompactionTasks();
- void WaitUntilCompactionCompleted();
+
+ void StartParallelCompaction(CompactionSpaceCollection** compaction_spaces,
+ uint32_t* task_ids, int len);
+ void WaitUntilCompactionCompleted(uint32_t* task_ids, int len);
void EvacuateNewSpaceAndCandidates();
@@ -797,9 +800,6 @@ class MarkCompactCollector {
// Semaphore used to synchronize compaction tasks.
base::Semaphore pending_compaction_tasks_semaphore_;
- // Number of active compaction tasks (including main thread).
- intptr_t concurrent_compaction_tasks_active_;
-
friend class Heap;
};
« 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