summary refs log tree commit diff
path: root/src/libstd/sys/common/stack.rs
AgeCommit message (Collapse)AuthorLines
2015-08-10Remove morestack supportAlex Crichton-311/+0
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-07-11fixing trailing whitespaceDave Huseby-1/+1
2015-07-11adding support for i686-unknown-freebsd targetDave Huseby-7/+9
2015-07-01Add netbsd amd64 supportAlex Newman-0/+2
2015-06-02std: clarify comments about sp* implementationsRicho Healey-8/+4
2015-05-09Squeeze the last bits of `task`s in documentation in favor of `thread`Barosl Lee-2/+2
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-25/+25
Now that support has been removed, all lingering use cases are renamed.
2015-03-12std: Remove #[allow] directives in sys modulesAlex Crichton-31/+0
These were suppressing lots of interesting warnings! Turns out there was also quite a bit of dead code.
2015-02-11PR review fixesDave Huseby-12/+2
2015-02-11bitrig integrationDave Huseby-2/+15
2015-02-01openbsd: incoporate remarksSébastien Marie-37/+17
- consolidate target_record_sp_limit and target_get_sp_limit functions for aarch64, powerpc, arm-ios and openbsd as there are all without segmented stacks (no need to duplicate functions). - rename __load_self function to rust_load_self - use a mutex inner load_self() as underline implementation is not thread-safe
2015-02-01openbsd supportSébastien Marie-0/+11
2015-01-11powerpc: Janky segmented stack supportRicho Healey-0/+12
2015-01-03Initial version of AArch64 support.Akos Kiss-1/+12
Adds AArch64 knowledge to: * configure, * make files, * sources, * tests, and * documentation.
2014-12-18libs: merge librustrt into libstdAaron Turon-0/+325
This commit merges the `rustrt` crate into `std`, undoing part of the facade. This merger continues the paring down of the runtime system. Code relying on the public API of `rustrt` will break; some of this API is now available through `std::rt`, but is likely to change and/or be removed very soon. [breaking-change]