Commit bdceff99 authored by Kim-Anh Tran's avatar Kim-Anh Tran Committed by Commit Bot

[wasm] Add missing early exit from compilation (BackgroundCompileTask)

This CL adds back a check that previously had an early exit within
the compilation loop, when compilation failed.

Change-Id: Ie511010af22029671c8eb71aa2189d6429081b14
Reviewed-on: https://chromium-review.googlesource.com/968504Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@google.com>
Cr-Commit-Position: refs/heads/master@{#52026}
parent 468a9303
...@@ -1521,6 +1521,7 @@ class BackgroundCompileTask : public CancelableTask { ...@@ -1521,6 +1521,7 @@ class BackgroundCompileTask : public CancelableTask {
void RunInternal() override { void RunInternal() override {
TRACE_COMPILE("(3b) Compiling...\n"); TRACE_COMPILE("(3b) Compiling...\n");
while (compilation_state_->CanAcceptWork()) { while (compilation_state_->CanAcceptWork()) {
if (compilation_state_->failed()) break;
DisallowHandleAllocation no_handle; DisallowHandleAllocation no_handle;
DisallowHeapAllocation no_allocation; DisallowHeapAllocation no_allocation;
......
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