rust/src/libstd/sys/common
Alex Crichton 7a3fdfbf67 Remove morestack support
This commit removes all morestack support from the compiler which entails:

* Segmented stacks are no longer emitted in codegen.
* We no longer build or distribute libmorestack.a
* The `stack_exhausted` lang item is no longer required

The only current use of the segmented stack support in LLVM is to detect stack
overflow. This is no longer really required, however, because we already have
guard pages for all threads and registered signal handlers watching for a
segfault on those pages (to print out a stack overflow message). Additionally,
major platforms (aka Windows) already don't use morestack.

This means that Rust is by default less likely to catch stack overflows because
if a function takes up more than one page of stack space it won't hit the guard
page. This is what the purpose of morestack was (to catch this case), but it's
better served with stack probes which have more cross platform support and no
runtime support necessary. Until LLVM supports this for all platform it looks
like morestack isn't really buying us much.

cc #16012 (still need stack probes)
Closes #26458 (a drive-by fix to help diagnostics on stack overflow)
2015-08-10 16:35:44 -07:00
..
backtrace.rs syntax: Implement #![no_core] 2015-08-03 17:23:01 -07:00
condvar.rs
io.rs Add specializations of read_to_end for Stdin, TcpStream and File, 2015-07-15 21:30:18 +01:00
mod.rs Remove morestack support 2015-08-10 16:35:44 -07:00
mutex.rs
net.rs std: Add IntoRaw{Fd,Handle,Socket} traits 2015-07-20 09:08:50 -07:00
poison.rs syntax: Implement #![no_core] 2015-08-03 17:23:01 -07:00
remutex.rs
rwlock.rs
thread_info.rs syntax: Implement #![no_core] 2015-08-03 17:23:01 -07:00
thread_local.rs syntax: Implement #![no_core] 2015-08-03 17:23:01 -07:00
thread.rs Remove morestack support 2015-08-10 16:35:44 -07:00
wtf8.rs syntax: Implement #![no_core] 2015-08-03 17:23:01 -07:00