diff --git a/src/libcore/task.rs b/src/libcore/task.rs index 31f01cf8384..5cb2af9679d 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -41,7 +41,6 @@ export join; export unsupervise; export pin; export unpin; -export set_min_stack; export task_result; export tr_success; export tr_failure; @@ -65,8 +64,6 @@ native mod rustrt { fn get_task_id() -> task_id; fn rust_get_task() -> *rust_task; - fn set_min_stack(stack_size: uint); - fn new_task() -> task_id; fn drop_task(task_id: *rust_task); fn get_task_pointer(id: task_id) -> *rust_task; @@ -216,15 +213,6 @@ Unpin the current task and future child tasks */ fn unpin() { rustrt::unpin_task(); } -/* -Function: set_min_stack - -Set the minimum stack size (in bytes) for tasks spawned in the future. - -This function has global effect and should probably not be used. -*/ -fn set_min_stack(stack_size: uint) { rustrt::set_min_stack(stack_size); } - /* Function: spawn diff --git a/src/test/bench/task-perf-word-count-generic.rs b/src/test/bench/task-perf-word-count-generic.rs index 94358e23945..a40fa80ad17 100644 --- a/src/test/bench/task-perf-word-count-generic.rs +++ b/src/test/bench/task-perf-word-count-generic.rs @@ -220,10 +220,6 @@ fn main(argv: [str]) { iargs += [str::bytes(a)]; } - // We can get by with 8k stacks, and we'll probably exhaust our - // address space otherwise. - task::set_min_stack(8192u); - let start = time::precise_time_ns(); map_reduce::map_reduce(map, reduce, iargs); diff --git a/src/test/bench/task-perf-word-count.rs b/src/test/bench/task-perf-word-count.rs index 57c90637208..a310bc152f8 100644 --- a/src/test/bench/task-perf-word-count.rs +++ b/src/test/bench/task-perf-word-count.rs @@ -185,10 +185,6 @@ mod map_reduce { } fn main(argv: [str]) { - // We can get by with 8k stacks, and we'll probably exhaust our - // address space otherwise. - task::set_min_stack(8192u); - let inputs = if vec::len(argv) < 2u { [input1(), input2(), input3()] } else { diff --git a/src/test/run-fail/morestack2.rs b/src/test/run-fail/morestack2.rs index 51748afac75..beb62d72e1d 100644 --- a/src/test/run-fail/morestack2.rs +++ b/src/test/run-fail/morestack2.rs @@ -8,7 +8,6 @@ use std; native mod rustrt { - fn set_min_stack(size: uint); fn pin_task(); } @@ -31,7 +30,6 @@ resource and_then_get_big_again(_i: ()) { } fn main() { - rustrt::set_min_stack(1024u); task::spawn((), fn (&&_i: ()) { let r = and_then_get_big_again(()); getbig_call_c_and_fail(10000); diff --git a/src/test/run-fail/morestack3.rs b/src/test/run-fail/morestack3.rs index b682499e3a9..dd52986c4a4 100644 --- a/src/test/run-fail/morestack3.rs +++ b/src/test/run-fail/morestack3.rs @@ -4,10 +4,6 @@ use std; -native mod rustrt { - fn set_min_stack(size: uint); -} - fn getbig_and_fail(&&i: int) { let r = and_then_get_big_again(@0); if i != 0 { @@ -27,6 +23,5 @@ resource and_then_get_big_again(_i: @int) { } fn main() { - rustrt::set_min_stack(1024u); task::spawn(400, getbig_and_fail); } \ No newline at end of file