mirror of
https://github.com/rui314/mold.git
synced 2024-09-17 16:09:43 +03:00
d8a8877875
Looks like on many Unix-like systems, `pthread_create` can spuriously fail for various reasons even if we have enough resources one more thread. So we need to retry if EAGAIN is returned. Without this, mold occasionally fails due to a pthread_create failure. I'll test this logic for a while in this repo and upstream to OneTBB. This logic is borrowed from Go's this patch: https://go-review.googlesource.com/c/go/+/33894/ https://github.com/rui314/mold/issues/353 https://github.com/rui314/mold/issues/410 |
||
---|---|---|
.. | ||
mimalloc | ||
tbb | ||
xxhash |