std::rt: Use 2MB stacks
Seems to be around the minimum needed by rustc without split stacks
This commit is contained in:
parent
436d9fa45d
commit
7265cc6530
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue