| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 30abe6d54ca22cbe76b37f55d06ce8691daa0fbf..aa1900b322029e65a486418d8984a25f9bb0c8d1 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -3525,7 +3525,6 @@ void MarkCompactCollector::SweepSpace(PagedSpace* space, SweeperType sweeper) {
|
|
|
| intptr_t freed_bytes = 0;
|
| int pages_swept = 0;
|
| - intptr_t newspace_size = space->heap()->new_space()->Size();
|
| bool lazy_sweeping_active = false;
|
| bool unused_page_present = false;
|
|
|
| @@ -3588,15 +3587,8 @@ void MarkCompactCollector::SweepSpace(PagedSpace* space, SweeperType sweeper) {
|
| }
|
| freed_bytes += SweepConservatively(space, p);
|
| pages_swept++;
|
| - if (freed_bytes > 2 * newspace_size) {
|
| - space->SetPagesToSweep(p->next_page());
|
| - lazy_sweeping_active = true;
|
| - } else {
|
| - if (FLAG_gc_verbose) {
|
| - PrintF("Only %" V8PRIdPTR " bytes freed. Still sweeping.\n",
|
| - freed_bytes);
|
| - }
|
| - }
|
| + space->SetPagesToSweep(p->next_page());
|
| + lazy_sweeping_active = true;
|
| break;
|
| }
|
| case PRECISE: {
|
|
|