heap: Fix maximum embedder step size

Bug: chromium:1054345
Change-Id: Ic26cacfff024fada079b72a0bd26a49dfd0ef709
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2064984
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66372}
This commit is contained in:
Michael Lippautz 2020-02-20 15:09:26 +01:00 committed by Commit Bot
parent 77c4a66bf9
commit 48ca5b6568

View File

@ -1105,7 +1105,7 @@ StepResult IncrementalMarking::Step(double max_step_size_in_ms,
StepResult embedder_result = StepResult::kNoImmediateWork;
if (heap_->local_embedder_heap_tracer()->InUse()) {
embedder_deadline =
Max(max_step_size_in_ms,
Min(max_step_size_in_ms,
static_cast<double>(bytes_to_process) / marking_speed);
embedder_result = EmbedderStep(embedder_deadline, &embedder_duration);
}