change DEFAULT_STACK_SIZE to be 32MB on s390x - #161767
Conversation
|
r? @jackh726 rustbot has assigned @jackh726. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
I'd rather we increased it for all (or most) platforms. Though does it need to be 32MB? There's no real reason to keep going up in powers of two, although having some leeway is useful. Maybe we could keep the 16MB for 32-bit targets since those are more sensitive to thread stack sizes. |
|
ok i tested it. funny enough 17mb lets it pass. I guess setting it to 17mb for everybody wont hurt? however i want to emphasize that some passes in rust are recursive and therefore one can always create a valid rust program that will segfault the compiler. indifferent of the architecture. |
|
Yeah, I don't really like tests that simply stress the recursion for no real reason. If someone has unusually extreme needs then that's what the environment variable is for (similarly, we have |
tests/ui/match/match-stack-overflow-72933-.rs crashes on s390x due to hitting stack_size limit. changing the size to 17MB the crash.
7fee27e to
d3a3f13
Compare
|
LGTM, thanks! In the unlikely event this causes problems for anyone there's still plenty of time for this to be caught during nightly/beta. @bors r+ |
…isDenton change DEFAULT_STACK_SIZE to be 32MB on s390x `tests/ui/match/match-stack-overflow-72933-.rs` crashes on s390x due to hitting stack_size limit(rust-lang#161742). changing the size to 32MB on s390x fixes the crash.
…isDenton change DEFAULT_STACK_SIZE to be 32MB on s390x `tests/ui/match/match-stack-overflow-72933-.rs` crashes on s390x due to hitting stack_size limit(rust-lang#161742). changing the size to 32MB on s390x fixes the crash.
…uwer Rollup of 11 pull requests Successful merges: - #151618 (rustdoc: add `--print` option) - #161287 (Update `icu_list` dependency to 2.3) - #161767 (change DEFAULT_STACK_SIZE to be 32MB on s390x) - #161968 (Diverse offload fixes) - #161971 (Remove -Zsaturating-float-casts flag) - #162071 (Fix ICE of getting item name from RPITIT) - #161209 (Rework `next_power_of_two` to always be `1 << …`) - #162073 (Change some `Infallible` to `!` in std) - #162086 (Remove `gate_check` from `AttributeStability::Unstable`) - #162102 (`alloc` crate: shrink undocumented `unsafe` blocks) - #162110 (make it clear that Range cannot represent arbitrary ranges)
tests/ui/match/match-stack-overflow-72933-.rscrashes on s390x due to hitting stack_size limit(#161742).changing the size to 32MB on s390x fixes the crash.