Commit b0400674 authored by Frederik Gossen's avatar Frederik Gossen Committed by Commit Bot

[wasm] Fix flaking DCHECK in {CompileLazy}

Lazy compilation no longer asserts the non-existence of code. Code may
exist when tiering finishes (and publishes code) after {CompileLazy}
started execution and before it reached the DCHECK.

Bug: v8:9211
Change-Id: I03ed44da7e16f1e4b4dca4b314a56cf6828bf1a4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1596447Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Frederik Gossen <frgossen@google.com>
Cr-Commit-Position: refs/heads/master@{#61336}
parent 2d21b6e9
......@@ -747,8 +747,6 @@ bool CompileLazy(Isolate* isolate, NativeModule* native_module,
base::ElapsedTimer compilation_timer;
compilation_timer.Start();
DCHECK(!native_module->HasCode(func_index));
TRACE_LAZY("Compiling wasm-function#%d.\n", func_index);
CompilationStateImpl* compilation_state =
......
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