Commit de2bd4b6 authored by Hannes Payer's avatar Hannes Payer Committed by Commit Bot

[heap] Set reduce memory mode for sweeping when it is started.

Bug: chromium:897074
Change-Id: I8f886647eaab80a6d283b3f1aef6575f36327ec7
Reviewed-on: https://chromium-review.googlesource.com/c/1304543Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57098}
parent 64a896fb
......@@ -27,7 +27,7 @@ Sweeper::Sweeper(Heap* heap, MajorNonAtomicMarkingState* marking_state)
iterability_task_semaphore_(0),
iterability_in_progress_(false),
iterability_task_started_(false),
should_reduce_memory_(heap->ShouldReduceMemory()) {}
should_reduce_memory_(false) {}
Sweeper::PauseOrCompleteScope::PauseOrCompleteScope(Sweeper* sweeper)
: sweeper_(sweeper) {
......@@ -150,6 +150,7 @@ void Sweeper::StartSweeping() {
CHECK(!stop_sweeper_tasks_);
sweeping_in_progress_ = true;
iterability_in_progress_ = true;
should_reduce_memory_ = heap_->ShouldReduceMemory();
MajorNonAtomicMarkingState* marking_state =
heap_->mark_compact_collector()->non_atomic_marking_state();
ForAllSweepingSpaces([this, marking_state](AllocationSpace space) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment