summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-12-12 17:20:03 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-12-24 14:41:59 -0800
commit1815aea36818cd86ebae607522318f56e35c01a2 (patch)
treea126b63bf3467662963a00330746183e2580d4eb /src/libstd/rt
parentcab44fb076b4bc56a5877304a7b7617325cb8573 (diff)
downloadrust-1815aea36818cd86ebae607522318f56e35c01a2.tar.gz
rust-1815aea36818cd86ebae607522318f56e35c01a2.zip
std: Introduce an unstable::stack module
This module will be used to manage the OS-specific TLS registers used to specify
the bounds of the current rust stack (useful in 1:1 and M:N)
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs
index 6128f310a2e..c72ec3161cd 100644
--- a/src/libstd/rt/thread.rs
+++ b/src/libstd/rt/thread.rs
@@ -41,9 +41,9 @@ static DEFAULT_STACK_SIZE: libc::size_t = 1024 * 1024;
 // and invoke it.
 #[no_split_stack]
 extern fn thread_start(main: *libc::c_void) -> imp::rust_thread_return {
-    use rt::context;
+    use unstable::stack;
     unsafe {
-        context::record_stack_bounds(0, uint::max_value);
+        stack::record_stack_bounds(0, uint::max_value);
         let f: ~proc() = cast::transmute(main);
         (*f)();
         cast::transmute(0 as imp::rust_thread_return)