about summary refs log tree commit diff
path: root/src/libstd/sys/sgx/mutex.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-140/+0
2020-03-20Fix abort-on-eprintln during process shutdownAlex Crichton-1/+1
This commit fixes an issue where if `eprintln!` is used in a TLS destructor it can accidentally cause the process to abort. TLS destructors are executed after `main` returns on the main thread, and at this point we've also deinitialized global `Lazy` values like those which store the `Stderr` and `Stdout` internals. This means that despite handling TLS not being accessible in `eprintln!`, we will fail due to not being able to call `stderr()`. This means that we'll double-panic quickly because panicking also attempt to write to stderr. The fix here is to reimplement the global stderr handle to avoid the need for destruction. This avoids the need for `Lazy` as well as the hidden panic inside of the `stderr` function. Overall this should improve the robustness of printing errors and/or panics in weird situations, since the `stderr` accessor should be infallible in more situations.
2019-12-22Format the worldMark Rousskov-11/+11
2019-08-30Fix unlock ordering in SGX synchronization primitivesJethro Beekman-2/+2
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-11Remove unnecessary feature gates from const fnsOliver Scherer-2/+0
2018-12-07SGX target: implement synchronization primitives and threadingJethro Beekman-24/+98
2018-12-07Add x86_64-fortanix-unknown-sgx target to libstd and dependenciesJethro Beekman-0/+78
The files src/libstd/sys/sgx/*.rs are mostly copied/adapted from the wasm target. This also updates the dlmalloc submodule to the very latest version.