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

[heap] Don't assume that optimizing-compile-dispatcher exists

Bug: chromium:1215514, chromium:1211215
Change-Id: I6ebc1d4138d6bee66c3fd9a8369741b8df960807
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2933663
Commit-Queue: Georg Neis <neis@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74929}
parent f1304bbf
......@@ -3165,7 +3165,10 @@ bool Heap::CanMoveObjectStart(HeapObject object) {
if (IsLargeObject(object)) return false;
// Compilation jobs may have references to the object.
if (isolate()->optimizing_compile_dispatcher()->HasJobs()) return false;
if (isolate()->concurrent_recompilation_enabled() &&
isolate()->optimizing_compile_dispatcher()->HasJobs()) {
return false;
}
// We can move the object start if the page was already swept.
return Page::FromHeapObject(object)->SweepingDone();
......
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --no-concurrent-recompilation
new Array(4242).shift();
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