From 7755ffd0131fa99ca5d58bdd5eab443b44d5a1ff Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 6 Nov 2013 15:16:04 -0800 Subject: Remove #[fixed_stack_segment] and #[rust_stack] These two attributes are no longer useful now that Rust has decided to leave segmented stacks behind. It is assumed that the rust task's stack is always large enough to make an FFI call (due to the stack being very large). There's always the case of stack overflow, however, to consider. This does not change the behavior of stack overflow in Rust. This is still normally triggered by the __morestack function and aborts the whole process. C stack overflow will continue to corrupt the stack, however (as it did before this commit as well). The future improvement of a guard page at the end of every rust stack is still unimplemented and is intended to be the mechanism through which we attempt to detect C stack overflow. Closes #8822 Closes #10155 --- src/libstd/rt/basic.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libstd/rt/basic.rs') diff --git a/src/libstd/rt/basic.rs b/src/libstd/rt/basic.rs index 322c58bc2b8..a8f762c4c8f 100644 --- a/src/libstd/rt/basic.rs +++ b/src/libstd/rt/basic.rs @@ -236,7 +236,6 @@ impl Drop for BasicPausible { } fn time() -> Time { - #[fixed_stack_segment]; #[inline(never)]; extern { fn get_time(sec: &mut i64, nsec: &mut i32); } -- cgit 1.4.1-3-g733a5