Skip to content

Commit cad4918

Browse files
committed
core: Remove sys::set_min_stack
This was a temporary hack with global effect. Eventually there will be a real solution for controlling stack sizes.
1 parent 6548cdd commit cad4918

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

src/libcore/sys.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ native mod rustrt {
2121
fn unsupervise();
2222
fn shape_log_str<T>(t: *sys::type_desc, data: T) -> str;
2323
fn rust_set_exit_status(code: ctypes::intptr_t);
24-
fn set_min_stack(size: ctypes::uintptr_t);
2524
}
2625

2726
#[abi = "rust-intrinsic"]
@@ -106,22 +105,6 @@ fn set_exit_status(code: int) {
106105
rustrt::rust_set_exit_status(code as ctypes::intptr_t);
107106
}
108107

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-
125108
#[cfg(test)]
126109
mod tests {
127110

src/test/bench/shootout-ackermann.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ fn ack(m: int, n: int) -> int {
1313
}
1414

1515
fn main(args: [str]) {
16-
// FIXME: #1527
17-
sys::set_min_stack(1000000u);
1816
let n = if vec::len(args) == 2u {
1917
int::from_str(args[1])
2018
} else {

src/test/bench/shootout-fibo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ fn fib(n: int) -> int {
99
}
1010

1111
fn main(args: [str]) {
12-
// FIXME: #1527
13-
sys::set_min_stack(1000000u);
1412
let n = if vec::len(args) == 2u {
1513
int::from_str(args[1])
1614
} else {

0 commit comments

Comments
 (0)