1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-17 16:09:43 +03:00
mold/third-party
Rui Ueyama d8a8877875 Retry if pthread_create returns EAGAIN
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
2022-05-07 19:04:48 +08:00
..
mimalloc Upgrade the bundled mimalloc to v2.0.6 2022-04-23 17:16:25 +08:00
tbb Retry if pthread_create returns EAGAIN 2022-05-07 19:04:48 +08:00
xxhash Merge commit '0621402e0a83a71ee5a13e92ce6a5de0f14dc1f2' as 'third-party/xxhash' 2021-12-18 12:42:16 +09:00