rust/src/libstd/sys/unix
Josh Stone be509b3387 Skip the main thread's manual stack guard on Linux
Linux doesn't allocate the whole stack right away, and the kernel has
its own stack-guard mechanism to fault when growing too close to an
existing mapping.  If we map our own guard, then the kernel starts
enforcing a rather large gap above that, rendering much of the possible
stack space useless.

Instead, we'll just note where we expect rlimit to start faulting, so
our handler can report "stack overflow", and trust that the kernel's own
stack guard will work.

Fixes #43052.
2017-07-07 09:19:04 -07:00
..
backtrace Update usages of 'OSX' (and other old names) to 'macOS'. 2017-03-12 14:59:04 -04:00
ext Removed as many "```ignore" as possible. 2017-06-23 15:31:53 +08:00
process Add conversions from File and Child* handles to Stdio 2017-06-06 15:42:55 -07:00
android.rs Android: Fix unused-imports warning 2016-10-14 23:02:47 +02:00
args.rs Better Debug for Args and ArgsOs 2017-06-21 15:40:45 +03:00
condvar.rs Fix condvar.wait(distant future) return immediately on OSX 2017-06-15 21:20:02 +01:00
env.rs Add Fuchsia support 2016-10-22 07:08:06 -07:00
fast_thread_local.rs rustc: Enable #[thread_local] for Windows 2017-06-23 16:11:39 -07:00
fd.rs Add Read::initializer. 2017-06-20 20:26:22 -07:00
fs.rs Add Read::initializer. 2017-06-20 20:26:22 -07:00
memchr.rs Use less size_t casts in libstd since it's now defined as usize 2016-10-08 15:48:28 +02:00
mod.rs rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
mutex.rs Fix undefined behavior when re-locking a mutex from the same thread 2016-06-02 13:31:01 +01:00
net.rs Implement TcpStream::connect_timeout 2017-07-06 19:35:49 -07:00
os.rs Improve the error management when /proc is not mounted 2017-05-17 15:14:30 +02:00
os_str.rs Avoid allocations in Debug for os_str 2017-06-15 20:42:37 +01:00
path.rs std: Move platform specific path code into sys 2016-10-01 19:28:17 +00:00
pipe.rs Add Read::initializer. 2017-06-20 20:26:22 -07:00
rand.rs std: Remove cfg(cargobuild) annotations 2017-02-06 08:42:54 -08:00
rwlock.rs Fix typos in unix/rwlock.rs 2016-08-19 21:12:36 -04:00
stack_overflow.rs Update usages of 'OSX' (and other old names) to 'macOS'. 2017-03-12 14:59:04 -04:00
stdio.rs Add Read::initializer. 2017-06-20 20:26:22 -07:00
thread.rs Skip the main thread's manual stack guard on Linux 2017-07-07 09:19:04 -07:00
thread_local.rs std: Avoid locks during TLS destruction on Windows 2017-05-05 06:59:49 -07:00
time.rs Fix a copy-paste error in Instant::sub_duration 2017-04-25 01:02:59 +02:00
weak.rs std: Fix linking against signal on Android 2016-04-04 21:54:59 -07:00