mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
b02b5cdcf4
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.