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

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

Issue 1382003002: [heap] Divide available memory upon compaction tasks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@counters
Patch Set: Addressed first round of comments 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') | src/heap/spaces.cc » ('J')
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 527800f4d181bec8b8726328bb0aaed86a8adb19..f6511382a0fac54e6dcff4c0903bed79a4d2b96f 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -467,6 +467,7 @@ class MarkCompactCollector {
bool IsSweepingCompleted();
void RefillFreeList(PagedSpace* space);
+ void RefillFreeList(CompactionSpace* space);
// Checks if sweeping is in progress right now on any space.
bool sweeping_in_progress() { return sweeping_in_progress_; }
@@ -516,6 +517,8 @@ class MarkCompactCollector {
class CompactionTask;
class SweeperTask;
+ static const intptr_t kCompactionSpaceMemoryWanted = 500 * KB;
+
explicit MarkCompactCollector(Heap* heap);
~MarkCompactCollector();
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | src/heap/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698