File tree Expand file tree Collapse file tree 5 files changed +0
-27
lines changed Expand file tree Collapse file tree 5 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ export join;
41
41
export unsupervise;
42
42
export pin;
43
43
export unpin;
44
- export set_min_stack;
45
44
export task_result;
46
45
export tr_success;
47
46
export tr_failure;
@@ -65,8 +64,6 @@ native mod rustrt {
65
64
fn get_task_id ( ) -> task_id ;
66
65
fn rust_get_task ( ) -> * rust_task ;
67
66
68
- fn set_min_stack ( stack_size : uint ) ;
69
-
70
67
fn new_task ( ) -> task_id ;
71
68
fn drop_task ( task_id : * rust_task ) ;
72
69
fn get_task_pointer ( id : task_id ) -> * rust_task ;
@@ -216,15 +213,6 @@ Unpin the current task and future child tasks
216
213
*/
217
214
fn unpin ( ) { rustrt:: unpin_task ( ) ; }
218
215
219
- /*
220
- Function: set_min_stack
221
-
222
- Set the minimum stack size (in bytes) for tasks spawned in the future.
223
-
224
- This function has global effect and should probably not be used.
225
- */
226
- fn set_min_stack ( stack_size : uint ) { rustrt:: set_min_stack ( stack_size) ; }
227
-
228
216
/*
229
217
Function: spawn
230
218
Original file line number Diff line number Diff line change @@ -220,10 +220,6 @@ fn main(argv: [str]) {
220
220
iargs += [ str:: bytes ( a) ] ;
221
221
}
222
222
223
- // We can get by with 8k stacks, and we'll probably exhaust our
224
- // address space otherwise.
225
- task:: set_min_stack ( 8192 u) ;
226
-
227
223
let start = time:: precise_time_ns ( ) ;
228
224
229
225
map_reduce:: map_reduce ( map, reduce, iargs) ;
Original file line number Diff line number Diff line change @@ -185,10 +185,6 @@ mod map_reduce {
185
185
}
186
186
187
187
fn main ( argv : [ str ] ) {
188
- // We can get by with 8k stacks, and we'll probably exhaust our
189
- // address space otherwise.
190
- task:: set_min_stack ( 8192 u) ;
191
-
192
188
let inputs = if vec:: len ( argv) < 2 u {
193
189
[ input1 ( ) , input2 ( ) , input3 ( ) ]
194
190
} else {
Original file line number Diff line number Diff line change 8
8
use std;
9
9
10
10
native mod rustrt {
11
- fn set_min_stack ( size : uint ) ;
12
11
fn pin_task ( ) ;
13
12
}
14
13
@@ -31,7 +30,6 @@ resource and_then_get_big_again(_i: ()) {
31
30
}
32
31
33
32
fn main ( ) {
34
- rustrt:: set_min_stack ( 1024 u) ;
35
33
task:: spawn ( ( ) , fn ( & & _i : ( ) ) {
36
34
let r = and_then_get_big_again ( ( ) ) ;
37
35
getbig_call_c_and_fail ( 10000 ) ;
Original file line number Diff line number Diff line change 4
4
5
5
use std;
6
6
7
- native mod rustrt {
8
- fn set_min_stack ( size : uint ) ;
9
- }
10
-
11
7
fn getbig_and_fail ( & & i: int ) {
12
8
let r = and_then_get_big_again ( @0 ) ;
13
9
if i != 0 {
@@ -27,6 +23,5 @@ resource and_then_get_big_again(_i: @int) {
27
23
}
28
24
29
25
fn main ( ) {
30
- rustrt:: set_min_stack ( 1024 u) ;
31
26
task:: spawn ( 400 , getbig_and_fail) ;
32
27
}
You can’t perform that action at this time.
0 commit comments