Index: src/heap/page-parallel-job.h |
diff --git a/src/heap/page-parallel-job.h b/src/heap/page-parallel-job.h |
index 440c440b7e7e0b9d8951cf2d91ba939021f6b713..ad1d9b3e301fd224ef6b10fc868408494dfcc572 100644 |
--- a/src/heap/page-parallel-job.h |
+++ b/src/heap/page-parallel-job.h |
@@ -103,7 +103,8 @@ class PageParallelJob { |
delete main_task; |
// Wait for background tasks. |
for (int i = 0; i < num_tasks_; i++) { |
- if (!cancelable_task_manager_->TryAbort(task_ids[i])) { |
+ if (cancelable_task_manager_->TryAbort(task_ids[i]) != |
+ CancelableTaskManager::kTaskAborted) { |
pending_tasks_->Wait(); |
} |
} |