File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ native mod rustrt {
21
21
fn unsupervise ( ) ;
22
22
fn shape_log_str < T > ( t : * sys:: type_desc , data : T ) -> str ;
23
23
fn rust_set_exit_status ( code : int ) ;
24
+ fn set_min_stack ( size : uint ) ;
24
25
}
25
26
26
27
#[ abi = "rust-intrinsic" ]
@@ -105,6 +106,22 @@ fn set_exit_status(code: int) {
105
106
rustrt:: rust_set_exit_status ( code) ;
106
107
}
107
108
109
+ // FIXME: #1495 - This shouldn't exist
110
+ #[ doc(
111
+ brief =
112
+ "Globally set the minimum size, in bytes, of a stack segment" ,
113
+ desc =
114
+ "Rust tasks have segmented stacks that are connected in a linked list \
115
+ allowing them to start very small and grow very large. In some \
116
+ situations this can result in poor performance. Calling this function \
117
+ will set the minimum size of all stack segments allocated in the \
118
+ future, for all tasks."
119
+ ) ]
120
+ #[ deprecated]
121
+ fn set_min_stack ( size : uint ) {
122
+ rustrt:: set_min_stack ( size) ;
123
+ }
124
+
108
125
// Local Variables:
109
126
// mode: rust;
110
127
// fill-column: 78;
You can’t perform that action at this time.
0 commit comments