提交 db111846 编写于 作者: B Brian Anderson

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

上级 96b299e1
......@@ -12,7 +12,7 @@
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
......
......@@ -23,7 +23,7 @@
use std::rt;
use std::task::TaskOpts;
use std::unstable::mutex::NativeMutex;
use std::unstable::stack;
use std::rt::stack;
use io;
use task;
......
......@@ -128,6 +128,9 @@ pub mod shouldnt_be_public {
// 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;
......
......@@ -41,7 +41,7 @@ pub struct Thread<T> {
// 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;
......
......@@ -19,7 +19,6 @@
pub mod simd;
pub mod sync;
pub mod mutex;
pub mod stack;
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册