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

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

Issue 1314903002: Add basic support for parallel compaction and flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 | « src/flag-definitions.h ('k') | 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 843e73d8e7dfa7d026036e70a8c80d9cd206204f..12da2d66747a939140dcdaf0816574513cd9ad03 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -668,6 +668,7 @@ class MarkCompactCollector {
void RemoveObjectSlots(Address start_slot, Address end_slot);
private:
+ class CompactionTask;
class SweeperTask;
explicit MarkCompactCollector(Heap* heap);
@@ -705,8 +706,12 @@ class MarkCompactCollector {
// True if concurrent or parallel sweeping is currently in progress.
bool sweeping_in_progress_;
+ // Synchronize sweeper threads.
base::Semaphore pending_sweeper_jobs_semaphore_;
+ // Synchronize compaction threads.
+ base::Semaphore pending_compaction_jobs_semaphore_;
+
bool evacuation_;
SlotsBufferAllocator slots_buffer_allocator_;
@@ -865,6 +870,8 @@ class MarkCompactCollector {
void EvacuatePages();
+ void EvacuatePagesInParallel();
+
void EvacuateNewSpaceAndCandidates();
void ReleaseEvacuationCandidates();
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698