| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index f2f649b86610ec71ef58cbd04ea734fa09f47a1f..e3b6389d20a1dcdd5a4602aca38a892bcd733ea0 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -3633,6 +3633,9 @@ void MarkCompactCollector::SweepSpace(PagedSpace* space, SweeperType sweeper) {
|
| PrintF("Sweeping 0x%" V8PRIxPTR " released page.\n",
|
| reinterpret_cast<intptr_t>(p));
|
| }
|
| + // Adjust unswept free bytes because releasing a page expects said
|
| + // counter to be accurate for unswept pages.
|
| + space->IncreaseUnsweptFreeBytes(p);
|
| space->ReleasePage(p);
|
| continue;
|
| }
|
| @@ -3644,7 +3647,7 @@ void MarkCompactCollector::SweepSpace(PagedSpace* space, SweeperType sweeper) {
|
| PrintF("Sweeping 0x%" V8PRIxPTR " lazily postponed.\n",
|
| reinterpret_cast<intptr_t>(p));
|
| }
|
| - space->MarkPageForLazySweeping(p);
|
| + space->IncreaseUnsweptFreeBytes(p);
|
| continue;
|
| }
|
|
|
|
|