| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index a1070fab4b1038974aea5582d78537a70fae1d35..d68593d0e1e3b8a7ffdf04fe08d4dfcf0211c462 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -4606,17 +4606,8 @@ bool Heap::IdleNotification(int hint) {
|
| // An incremental GC progresses as follows:
|
| // 1. many incremental marking steps,
|
| // 2. one old space mark-sweep-compact,
|
| - // 3. many lazy sweep steps.
|
| // Use mark-sweep-compact events to count incremental GCs in a round.
|
|
|
| - if (incremental_marking()->IsStopped()) {
|
| - if (!mark_compact_collector()->AreSweeperThreadsActivated() &&
|
| - !IsSweepingComplete() &&
|
| - !AdvanceSweepers(static_cast<int>(step_size))) {
|
| - return false;
|
| - }
|
| - }
|
| -
|
| if (mark_sweeps_since_idle_round_started_ >= kMaxMarkSweepsInIdleRound) {
|
| if (EnoughGarbageSinceLastIdleRound()) {
|
| StartIdleRound();
|
| @@ -5340,14 +5331,6 @@ intptr_t Heap::PromotedSpaceSizeOfObjects() {
|
| }
|
|
|
|
|
| -bool Heap::AdvanceSweepers(int step_size) {
|
| - ASSERT(!mark_compact_collector()->AreSweeperThreadsActivated());
|
| - bool sweeping_complete = old_data_space()->AdvanceSweeper(step_size);
|
| - sweeping_complete &= old_pointer_space()->AdvanceSweeper(step_size);
|
| - return sweeping_complete;
|
| -}
|
| -
|
| -
|
| int64_t Heap::PromotedExternalMemorySize() {
|
| if (amount_of_external_allocated_memory_
|
| <= amount_of_external_allocated_memory_at_last_global_gc_) return 0;
|
|
|