[llvm] [Support] Improve jobserver concurrency handling (PR #178434)
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 06:36:30 PST 2026
yxsamliu wrote:
CC @mgorny @haampie @amonakov — this PR addresses the issue you reported/discussed.
The fix uses a spawn-per-token approach: instead of pre-spawning threads based on an unreliable token count at startup, we now spawn worker threads only after successfully acquiring a jobserver token. This avoids both the underutilization problem (when siblings hold tokens) and the oversubscription concern raised by @amonakov (256 threads for `-j16` with 16 processes).
I'd appreciate your feedback on whether this addresses your concerns.
https://github.com/llvm/llvm-project/pull/178434
More information about the llvm-commits
mailing list