Commit 48ca5b65 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

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: 's avatarUlan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66372}
parent 77c4a66b
......@@ -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);
}
......
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