diff options
| author | bors <bors@rust-lang.org> | 2013-11-11 10:46:28 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-11 10:46:28 -0800 |
| commit | 0966ec01dcb0ff90e6d483706820794ef8e16c2e (patch) | |
| tree | 7d2032464a17a0ecb160828be5197587a545752d /src/libstd/rt/stack.rs | |
| parent | 4d9b95fada7c97ac1c63099bab1d45ba120958ec (diff) | |
| parent | 1f192430956704ddf263aba0cfb5b8856c547beb (diff) | |
| download | rust-0966ec01dcb0ff90e6d483706820794ef8e16c2e.tar.gz rust-0966ec01dcb0ff90e6d483706820794ef8e16c2e.zip | |
auto merge of #10407 : alexcrichton/rust/no-fixed-stack-segment, r=brson
The commit messages have more details, but this removes all analysis and usage related to fixed_stack_segment and rust_stack attributes. It's now the assumption that we always have "enough stack" and we'll implement detection of stack overflow through other means. The stack overflow detection is currently implemented for rust functions, but it is unimplemented for C functions (we still don't have guard pages).
Diffstat (limited to 'src/libstd/rt/stack.rs')
| -rw-r--r-- | src/libstd/rt/stack.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libstd/rt/stack.rs b/src/libstd/rt/stack.rs index 55bd4b0732a..4358390da9f 100644 --- a/src/libstd/rt/stack.rs +++ b/src/libstd/rt/stack.rs @@ -21,8 +21,6 @@ pub struct StackSegment { impl StackSegment { pub fn new(size: uint) -> StackSegment { - #[fixed_stack_segment]; #[inline(never)]; - unsafe { // Crate a block of uninitialized values let mut stack = vec::with_capacity(size); @@ -54,8 +52,6 @@ impl StackSegment { impl Drop for StackSegment { fn drop(&mut self) { - #[fixed_stack_segment]; #[inline(never)]; - unsafe { // XXX: Using the FFI to call a C macro. Slow rust_valgrind_stack_deregister(self.valgrind_id); |
