summary refs log tree commit diff
path: root/src/libstd/rt/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-09 20:21:17 -0800
committerbors <bors@rust-lang.org>2014-01-09 20:21:17 -0800
commitf78293c274be2a23889f20942d75e9e45352a336 (patch)
tree3d2f7a36b53f2f5db5719901fb0e6b382814a613 /src/libstd/rt/mod.rs
parent28ddc6537fcec5eb6033c78709b288abf72e8ae7 (diff)
parent65ce505819b0f2e06ed39802d293bff182aedc16 (diff)
downloadrust-f78293c274be2a23889f20942d75e9e45352a336.tar.gz
rust-f78293c274be2a23889f20942d75e9e45352a336.zip
auto merge of #11360 : huonw/rust/stack_bounds, r=alexcrichton
We just approximate with a 2MB stack for native::start.
Diffstat (limited to 'src/libstd/rt/mod.rs')
-rw-r--r--src/libstd/rt/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs
index d839ef62af9..e7adb5ad7dd 100644
--- a/src/libstd/rt/mod.rs
+++ b/src/libstd/rt/mod.rs
@@ -154,7 +154,8 @@ pub trait Runtime {
     // you're in.
     fn spawn_sibling(~self, cur_task: ~Task, opts: TaskOpts, f: proc());
     fn local_io<'a>(&'a mut self) -> Option<rtio::LocalIo<'a>>;
-    fn stack_bounds(&self) -> Option<(uint, uint)>; // (lo, hi)
+    /// The (low, high) edges of the current stack.
+    fn stack_bounds(&self) -> (uint, uint); // (lo, hi)
 
     // XXX: This is a serious code smell and this should not exist at all.
     fn wrap(~self) -> ~Any;