about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-18 14:10:36 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-18 14:10:41 -0800
commit12cde6ebee48d758b4b6b3ad79194e8f1acc607f (patch)
tree1e0bf8b88ab835e3563051e78ea02edb1a071ca1 /src
parent22ac628e8c9383e9f634e729d0722841d914490e (diff)
downloadrust-12cde6ebee48d758b4b6b3ad79194e8f1acc607f.tar.gz
rust-12cde6ebee48d758b4b6b3ad79194e8f1acc607f.zip
libcore: Remove task::set_min_stack
This existed to make up for the lack of stack growth, and wasn't generally
safe.
Diffstat (limited to 'src')
-rw-r--r--src/libcore/task.rs12
-rw-r--r--src/test/bench/task-perf-word-count-generic.rs4
-rw-r--r--src/test/bench/task-perf-word-count.rs4
-rw-r--r--src/test/run-fail/morestack2.rs2
-rw-r--r--src/test/run-fail/morestack3.rs5
5 files changed, 0 insertions, 27 deletions
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;
@@ -217,15 +214,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
 
 Creates and executes a new child task
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