diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-07-26 23:10:25 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-07-30 14:17:56 -0700 |
| commit | 7265cc6530b242f9590a3207f2bfdf9a5425a32c (patch) | |
| tree | d4abe27878c8ef03307f1dc7638ea9d52f905e46 /src/libstd/rt | |
| parent | 436d9fa45d7df98f49bc036de4254d5946478c5c (diff) | |
| download | rust-7265cc6530b242f9590a3207f2bfdf9a5425a32c.tar.gz rust-7265cc6530b242f9590a3207f2bfdf9a5425a32c.zip | |
std::rt: Use 2MB stacks
Seems to be around the minimum needed by rustc without split stacks
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 8cf864b9222..82d4f8fcc04 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -219,7 +219,7 @@ impl Drop for Task { impl Coroutine { pub fn new(stack_pool: &mut StackPool, start: ~fn()) -> Coroutine { - static MIN_STACK_SIZE: uint = 100000; // XXX: Too much stack + static MIN_STACK_SIZE: uint = 2000000; // XXX: Too much stack let start = Coroutine::build_start_wrapper(start); let mut stack = stack_pool.take_segment(MIN_STACK_SIZE); |
