std: Move unstable::stack to rt::stack

This commit is contained in:
Brian Anderson 2014-02-16 21:37:12 -08:00
parent 96b299e1f0
commit db111846b5
6 changed files with 8 additions and 6 deletions

View File

@ -12,7 +12,7 @@ use std::uint;
use std::cast::{transmute, transmute_mut_unsafe,
transmute_region, transmute_mut_region};
use stack::Stack;
use std::unstable::stack;
use std::rt::stack;
use std::raw;
// FIXME #7761: Registers is boxed so that it is 16-byte aligned, for storing

View File

@ -23,7 +23,7 @@ use std::rt::thread::Thread;
use std::rt;
use std::task::TaskOpts;
use std::unstable::mutex::NativeMutex;
use std::unstable::stack;
use std::rt::stack;
use io;
use task;

View File

@ -128,6 +128,9 @@ pub mod args;
// Support for running procedures when a program has exited.
mod at_exit_imp;
// Stack overflow protection
pub mod stack;
/// The default error code of the rust runtime if the main task fails instead
/// of exiting cleanly.
pub static DEFAULT_ERROR_CODE: int = 101;

View File

@ -41,7 +41,7 @@ static DEFAULT_STACK_SIZE: uint = 1024 * 1024;
// and invoke it.
#[no_split_stack]
extern fn thread_start(main: *libc::c_void) -> imp::rust_thread_return {
use unstable::stack;
use rt::stack;
unsafe {
stack::record_stack_bounds(0, uint::MAX);
let f: ~proc() = cast::transmute(main);
@ -150,7 +150,7 @@ mod imp {
use libc::types::os::arch::extra::{LPSECURITY_ATTRIBUTES, SIZE_T, BOOL,
LPVOID, DWORD, LPDWORD, HANDLE};
use ptr;
use unstable::stack::RED_ZONE;
use rt::stack::RED_ZONE;
pub type rust_thread = HANDLE;
pub type rust_thread_return = DWORD;
@ -208,7 +208,7 @@ mod imp {
use mem;
use os;
use ptr;
use unstable::stack::RED_ZONE;
use rt::stack::RED_ZONE;
pub type rust_thread = libc::pthread_t;
pub type rust_thread_return = *u8;

View File

@ -19,7 +19,6 @@ pub mod finally;
pub mod simd;
pub mod sync;
pub mod mutex;
pub mod stack;
/**