about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-01-28 13:21:31 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2014-01-31 13:47:25 +0100
commitb02b5cdcf42b4fe6b1e3ebe56ad0cd43fd907489 (patch)
treee654dcf7f4f058c7f5fc82d9322251adec216401 /src/rustllvm/RustWrapper.cpp
parent464b2e2364919f4555d6f8c5025273afd4277366 (diff)
downloadrust-b02b5cdcf42b4fe6b1e3ebe56ad0cd43fd907489.tar.gz
rust-b02b5cdcf42b4fe6b1e3ebe56ad0cd43fd907489.zip
Retry on EINVAL from pthread_attr_setstacksize()
Enforce that the stack size is > RED_ZONE + PTHREAD_STACK_MIN.  If the
call to pthread_attr_setstacksize() subsequently fails with EINVAL, it
means that the platform requires the stack size to be a multiple of the
page size.  In that case, round up to the nearest page and retry.

Fixes #11694.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions