about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-06-05 23:06:15 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-06-05 23:22:37 -0700
commit878107436a2c4ca60f1e87246fdb3480e1f2058b (patch)
tree91a082e3997b7587530b763de0992126ec630510 /compiler/rustc_codegen_llvm/src/errors.rs
parent003a9027927a51de770a1cf22fccade616a5f0e3 (diff)
downloadrust-878107436a2c4ca60f1e87246fdb3480e1f2058b.tar.gz
rust-878107436a2c4ca60f1e87246fdb3480e1f2058b.zip
Raise `DEFAULT_MIN_STACK_SIZE` to at least 64KiB
Prevent copy-paste errors from producing new starved-for-resources
threaded platforms by raising `DEFAULT_MIN_STACK_SIZE` from 4096 bytes
to at least 64KiB.

Two platforms "affected" by this have no actual threads:
- UEFI
- "unsupported"

Platforms that this actually affects:
- wasm32-wasi with "atomics" enabled
- wasm32-wasi-p1-threads

Two exceptions:
- SGX: a "secure code execution" platform, stays at 4096B
- TEEOS: also a "secure code execution" platform, stays at 8192B

I believe either of these may have sufficiently "interesting" semantics
around threads, or significant external library support. Either would
mean making any choices here for them is suspect.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions