rust/library/std/src/sys
bors 76822a2878 Auto merge of #99553 - ChrisDenton:lazy-compat-fn, r=Mark-Simulacrum
Rewrite Windows `compat_fn` macro

This allows using most delay loaded functions before the init code initializes them. It also only preloads a select few functions, rather than all functions.

This is optimized for the common case where a function is used after already being loaded (or failed to load). The only change in codegen at the call site is to use an atomic load instead of a plain load, which should have negligible or no impact.

I've split the old `compat_fn` macro in two so as not to mix two different use cases. If/when Windows 7 support is dropped `compat_fn_optional` can be removed entirely.

r? rust-lang/libs
2022-07-31 10:44:11 +00:00
..
common resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
hermit Hermit: Make Mutex::init a no-op 2022-06-26 23:20:41 +02:00
itron Rollup merge of #97140 - joboet:solid_parker, r=m-ou-se 2022-06-26 19:46:59 +02:00
sgx Address reviewer comments 2022-06-22 13:49:12 +02:00
solid Rollup merge of #95916 - solid-rs:feat-kmc-solid-abort, r=Mark-Simulacrum 2022-07-25 18:46:48 +09:00
unix Implement fs::get_path for FreeBSD. 2022-07-25 23:25:15 +01:00
unsupported Make all {Mutex, Condvar, RwLock}::new #[inline]. 2022-06-06 13:49:23 +02:00
wasi Use Rust 2021 prelude in std itself. 2022-05-09 11:12:32 +02:00
wasm Lazily allocate+initialize locks. 2022-06-03 17:04:14 +02:00
windows Auto merge of #99553 - ChrisDenton:lazy-compat-fn, r=Mark-Simulacrum 2022-07-31 10:44:11 +00:00
mod.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00