Skip to content

Commit 0e0aa83

Browse files
committed
---
yaml --- r: 7274 b: refs/heads/master c: bc77d7b h: refs/heads/master v: v3
1 parent 8b48082 commit 0e0aa83

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: b93ed365559b488e81a34bff0b560fd6366e9f13
2+
refs/heads/master: bc77d7bdb0d76382865c7b5efd1531e7ac8362fc

trunk/src/libcore/sys.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ 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: int);
24+
fn set_min_stack(size: uint);
2425
}
2526

2627
#[abi = "rust-intrinsic"]
@@ -105,6 +106,22 @@ fn set_exit_status(code: int) {
105106
rustrt::rust_set_exit_status(code);
106107
}
107108

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+
108125
// Local Variables:
109126
// mode: rust;
110127
// fill-column: 78;

0 commit comments

Comments
 (0)