diff options
| author | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2018-02-27 16:51:12 +0900 |
|---|---|---|
| committer | Tatsuyuki Ishi <ishitatsuyuki@gmail.com> | 2018-03-18 23:05:28 +0900 |
| commit | e85c9227c2e913b71f0d7b6cc2322d7897f28554 (patch) | |
| tree | 09166f2288b127880f94b3d54360ab645d1fbb89 /src/libstd/thread | |
| parent | 8aa27ee30972f16320ae4a8887c8f54616fff819 (diff) | |
| download | rust-e85c9227c2e913b71f0d7b6cc2322d7897f28554.tar.gz rust-e85c9227c2e913b71f0d7b6cc2322d7897f28554.zip | |
rustc_driver: get rid of extra thread on Unix
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index 71aee673cfe..b686ddc205e 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -208,6 +208,14 @@ pub use self::local::{LocalKey, AccessError}; #[unstable(feature = "libstd_thread_internals", issue = "0")] #[doc(hidden)] pub use self::local::os::Key as __OsLocalKeyInner; +/// Function used for resetting the main stack guard address after setrlimit(). +/// This is POSIX specific and unlikely to be directly stabilized. +#[unstable(feature = "rustc_stack_internals", issue = "0")] +pub unsafe fn update_stack_guard() { + let main_guard = imp::guard::init(); + thread_info::reset_guard(main_guard); +} + //////////////////////////////////////////////////////////////////////////////// // Builder //////////////////////////////////////////////////////////////////////////////// |
