Skip to content

Commit

Permalink
[heap] Fix threshold for delayed chunks after 2c7561.
Browse files Browse the repository at this point in the history
Bug: chromium:771966
Change-Id: Iac5ee55c0d31de477f21f091f4be015a1ca8d00c
Reviewed-on: https://chromium-review.googlesource.com/702382
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48316}
  • Loading branch information
ulan authored and Commit Bot committed Oct 5, 2017
1 parent 95cd866 commit 676c413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heap/heap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ void Heap::Scavenge() {

if (mark_compact_collector()->sweeper().sweeping_in_progress() &&
memory_allocator_->unmapper()->NumberOfDelayedChunks() >
kMaxSemiSpaceSizeInKB / Page::kPageSize) {
static_cast<int>(new_space_->MaximumCapacity() / Page::kPageSize)) {
mark_compact_collector()->EnsureSweepingCompleted();
}

Expand Down

0 comments on commit 676c413

Please sign in to comment.