about summary refs log tree commit diff
path: root/src/libstd/rt.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-21 10:46:11 +0000
committerbors <bors@rust-lang.org>2018-12-21 10:46:11 +0000
commit01c6ea2f37326674bf6ca64de55bf5fd90e45015 (patch)
tree6493f8fd87eaf77e2979ab068c5dcb2847f7420e /src/libstd/rt.rs
parent6d34ec18c7d7e574553f6347ecf08e1e1c45c13d (diff)
parent6b96827ae971cec1f1bf83245d8356481e76b644 (diff)
downloadrust-01c6ea2f37326674bf6ca64de55bf5fd90e45015.tar.gz
rust-01c6ea2f37326674bf6ca64de55bf5fd90e45015.zip
Auto merge of #56813 - oli-obk:main_🧶, r=pnkfelix
Always run rustc in a thread

cc @ishitatsuyuki @eddyb

r? @pnkfelix

[Previously](https://github.com/rust-lang/rust/pull/48575) we moved to only producing threads when absolutely necessary. Even before we opted to only create threads in some cases, which [is unsound](https://github.com/rust-lang/rust/pull/48575#issuecomment-380635967) due to the way we use thread local storage.
Diffstat (limited to 'src/libstd/rt.rs')
-rw-r--r--src/libstd/rt.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libstd/rt.rs b/src/libstd/rt.rs
index 9e957bd87d7..fdaf2a821fa 100644
--- a/src/libstd/rt.rs
+++ b/src/libstd/rt.rs
@@ -73,18 +73,3 @@ fn lang_start<T: ::process::Termination + 'static>
 {
     lang_start_internal(&move || main().report(), argc, argv)
 }
-
-/// Function used for reverting changes to the main stack before setrlimit().
-/// This is POSIX (non-Linux) specific and unlikely to be directly stabilized.
-#[unstable(feature = "rustc_stack_internals", issue = "0")]
-pub unsafe fn deinit_stack_guard() {
-    ::sys::thread::guard::deinit();
-}
-
-/// 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 = ::sys::thread::guard::init();
-    ::sys_common::thread_info::reset_guard(main_guard);
-}