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

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

Issue 2504993002: [heap] Minor MC: Add evacuation phase (Closed)
Patch Set: Rebase Created 4 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
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 5b7217ed74d2ef9439379db2b2278a5349536f84..3da551f009d57a37bd2b7a42b23463deca1a4fba 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -436,6 +436,8 @@ class MarkCompactCollector {
// Performs a global garbage collection.
void CollectGarbage();
+ // Performs a garbage collection in the young generation.
+ void CollectGarbageInYoungGeneration();
bool StartCompaction();
@@ -659,6 +661,7 @@ class MarkCompactCollector {
// Clear non-live references in weak cells, transition and descriptor arrays,
// and deoptimize dependent code of non-live maps.
void ClearNonLiveReferences();
+ void ClearNonLiveReferencesInYoungGeneration();
void MarkDependentCodeForDeoptimization(DependentCode* list);
// Find non-live targets of simple transitions in the given list. Clear
// transitions to non-live targets and if needed trim descriptors arrays.
@@ -699,13 +702,16 @@ class MarkCompactCollector {
void EvacuateNewSpacePrologue();
+ template <MarkCompactMode mode>
void EvacuatePagesInParallel();
// The number of parallel compaction tasks, including the main thread.
int NumberOfParallelCompactionTasks(int pages, intptr_t live_bytes);
+ template <MarkCompactMode mode>
void EvacuateNewSpaceAndCandidates();
+ template <MarkCompactMode mode>
void UpdatePointersAfterEvacuation();
// Iterates through all live objects on a page using marking information.
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/mark-compact.cc » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698