diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-12-12 17:20:03 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-12-24 14:41:59 -0800 |
| commit | 1815aea36818cd86ebae607522318f56e35c01a2 (patch) | |
| tree | a126b63bf3467662963a00330746183e2580d4eb /src/libstd/rt | |
| parent | cab44fb076b4bc56a5877304a7b7617325cb8573 (diff) | |
| download | rust-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.rs | 4 |
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) |
