[PATCH] D25784: [Support] ThreadPool: Don't spawn any threads when ThreadCount = 1

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 14:53:22 PDT 2016


vsk added a comment.

In https://reviews.llvm.org/D25784#574827, @mehdi_amini wrote:

> If spawning a thread is not relatively expensive, why would you bother having a separate code path?


I got a report about thread-related flakiness in llvm-cov (PR30735), and thought that avoiding thread creation could mitigate it.


https://reviews.llvm.org/D25784





More information about the llvm-commits mailing list