]> git.lizzy.rs Git - rust.git/commit
Decrease the default stack size back to 2MB
authorAlex Crichton <alex@alexcrichton.com>
Sun, 10 Nov 2013 22:46:41 +0000 (14:46 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 11 Nov 2013 18:40:34 +0000 (10:40 -0800)
commit1f192430956704ddf263aba0cfb5b8856c547beb
tree8d225bec123419b4aaaa61820edd624e7aa637b2
parent7755ffd0131fa99ca5d58bdd5eab443b44d5a1ff
Decrease the default stack size back to 2MB

I increased this to 4MB when I implemented abort-on-stack-overflow for Rust
functions. Now that the fixed_stack_segment attribute is removed, no rust
function will ever reasonably request 2MB of stack (due to calling an FFI
function).

The default size of 2MB should be plenty for everyday use-cases, and tasks can
still request more stack via the spawning API.
src/libstd/rt/env.rs