| Index: src/mark-compact.h
|
| diff --git a/src/mark-compact.h b/src/mark-compact.h
|
| index 2a1d97dc2aefc98c382a27419c2a575e6e53cedb..0773d0266683eb712f101a8f1bb026f3ca8d838a 100644
|
| --- a/src/mark-compact.h
|
| +++ b/src/mark-compact.h
|
| @@ -571,6 +571,8 @@ class MarkCompactCollector {
|
|
|
| static void Initialize();
|
|
|
| + void SetUp();
|
| +
|
| void TearDown();
|
|
|
| void CollectEvacuationCandidates(PagedSpace* space);
|
| @@ -715,13 +717,11 @@ class MarkCompactCollector {
|
| MarkingParity marking_parity() { return marking_parity_; }
|
|
|
| // Concurrent and parallel sweeping support.
|
| - void SweepInParallel(PagedSpace* space,
|
| - FreeList* private_free_list,
|
| - FreeList* free_list);
|
| + void SweepInParallel(PagedSpace* space);
|
|
|
| void WaitUntilSweepingCompleted();
|
|
|
| - intptr_t StealMemoryFromSweeperThreads(PagedSpace* space);
|
| + intptr_t RefillFreeLists(PagedSpace* space);
|
|
|
| bool AreSweeperThreadsActivated();
|
|
|
| @@ -744,7 +744,7 @@ class MarkCompactCollector {
|
| void MarkAllocationSite(AllocationSite* site);
|
|
|
| private:
|
| - MarkCompactCollector();
|
| + explicit MarkCompactCollector(Heap* heap);
|
| ~MarkCompactCollector();
|
|
|
| bool MarkInvalidatedCode();
|
| @@ -957,6 +957,9 @@ class MarkCompactCollector {
|
| List<Page*> evacuation_candidates_;
|
| List<Code*> invalidated_code_;
|
|
|
| + SmartPointer<FreeList> free_list_old_data_space_;
|
| + SmartPointer<FreeList> free_list_old_pointer_space_;
|
| +
|
| friend class Heap;
|
| };
|
|
|
|
|