| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index e77e90e166bfaeb6e8347dd56698e94ec7ec8906..5c45f97dc38066782b303eb71d0dcfa74bcc05d9 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -547,6 +547,14 @@ void MarkCompactCollector::SweepOrWaitUntilSweepingCompleted(Page* page) {
|
| }
|
|
|
|
|
| +void MarkCompactCollector::SweepAndRefill(CompactionSpace* space) {
|
| + if (heap()->concurrent_sweeping_enabled() && !IsSweepingCompleted()) {
|
| + SweepInParallel(heap()->paged_space(space->identity()), 0);
|
| + space->RefillFreeList();
|
| + }
|
| +}
|
| +
|
| +
|
| void MarkCompactCollector::EnsureSweepingCompleted() {
|
| DCHECK(sweeping_in_progress_ == true);
|
|
|
|
|