Commit d36cc695 authored by Georg Neis's avatar Georg Neis Committed by V8 LUCI CQ

Fix OptimizingCompileDispatcher::HasJobs when --block-concurrent-recompilation

Bug: chromium:1234974
Change-Id: I4227853b9e6f232b7e17037cdac01c4f80320464
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3069281
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76086}
parent c37c4e8a
......@@ -219,7 +219,7 @@ bool OptimizingCompileDispatcher::HasJobs() {
// Note: This relies on {output_queue_} being mutated by a background thread
// only when {ref_count_} is not zero. Also, {ref_count_} is never incremented
// by a background thread.
return !(ref_count_ == 0 && output_queue_.empty());
return ref_count_ != 0 || !output_queue_.empty() || blocked_jobs_ != 0;
}
void OptimizingCompileDispatcher::QueueForOptimization(
......
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