-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 5 pull requests #131288
Rollup of 5 pull requests #131288
Commits on Sep 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for df6c27d - Browse repository at this point
Copy the full SHA df6c27dView commit details
Commits on Oct 1, 2024
-
Auto merge of rust-lang#3923 - tiif:refactor, r=RalfJung
Refactor ``return_read_bytes_and_count`` and ``return_written_byte_count_or_error`` Fixes rust-lang#3904 This PR - separate the error logic from ``return_read_bytes_and_count`` and ``return_written_byte_count_or_error`` into a helper function ``set_last_error_and_return``.
Configuration menu - View commit details
-
Copy full SHA for c37539d - Browse repository at this point
Copy the full SHA c37539dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88c7452 - Browse repository at this point
Copy the full SHA 88c7452View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c21fd4 - Browse repository at this point
Copy the full SHA 9c21fd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f4e1d4 - Browse repository at this point
Copy the full SHA 4f4e1d4View commit details -
Auto merge of rust-lang#3929 - RalfJung:io-error, r=RalfJung
Make returning io errors more uniform and convenient
Configuration menu - View commit details
-
Copy full SHA for 97510cd - Browse repository at this point
Copy the full SHA 97510cdView commit details -
std: replace
LazyBox
withOnceBox
This PR replaces the `LazyBox` wrapper used to allocate the pthread primitives with `OnceBox`, which has a more familiar API mirroring that of `OnceLock`. This cleans up the code in preparation for larger changes like rust-lang#128184 (from which this PR was split) and allows some neat optimizations, like avoid an acquire-load of the allocation pointer in `Mutex::unlock`, where the initialization of the allocation must have already been observed. Additionally, I've gotten rid of the TEEOS `Condvar` code, it's just a duplicate of the pthread one anyway and I didn't want to repeat myself.
Configuration menu - View commit details
-
Copy full SHA for c1acccd - Browse repository at this point
Copy the full SHA c1acccdView commit details
Commits on Oct 2, 2024
-
This test demonstrates the need to synchronize the clock of the thread waking up from an epoll_wait from the thread that issued the epoll awake event.
Configuration menu - View commit details
-
Copy full SHA for 3e089b0 - Browse repository at this point
Copy the full SHA 3e089b0View commit details -
epoll: remove unnecessary instructions
A couple of instructions were left over from an earlier rebase it would seem. They don't impact the logic but the ready_list type is about to change in the next commit. Rather than modify one of these lines in the commit that changes ready_list, only to have these lines removed later on, remove them now. They don't impact the tests results.
Configuration menu - View commit details
-
Copy full SHA for 1b622f4 - Browse repository at this point
Copy the full SHA 1b622f4View commit details -
epoll: add vector clock to the epoll ready_list
This adds a VClock to the epoll implementation's ready_list and has this VClock synced from the thread that updates an event in the ready_list and then has the VClocks of any threads being made runnable again, out of the calls to epoll_wait, synced from it.
Configuration menu - View commit details
-
Copy full SHA for 86bb137 - Browse repository at this point
Copy the full SHA 86bb137View commit details -
epoll: remove extraneous clone of ready_list
A simplification that doesn't impact the epoll implementation's logic. It is not necessary to clone the ready_list before reading its `is_empty` state. This avoids the clone step but more importantly avoids the invisible drop step of the clone.
Configuration menu - View commit details
-
Copy full SHA for 81202c8 - Browse repository at this point
Copy the full SHA 81202c8View commit details -
Auto merge of rust-lang#3932 - rust-lang:epoll-with-vector-clock, r=o…
…li-obk Add vector clock to epoll ready lists Replaces rust-lang#3928 Fixes rust-lang#3911
Configuration menu - View commit details
-
Copy full SHA for 52aa98a - Browse repository at this point
Copy the full SHA 52aa98aView commit details
Commits on Oct 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for be819d4 - Browse repository at this point
Copy the full SHA be819d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6280e26 - Browse repository at this point
Copy the full SHA 6280e26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32d4968 - Browse repository at this point
Copy the full SHA 32d4968View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b35886 - Browse repository at this point
Copy the full SHA 9b35886View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf71d65 - Browse repository at this point
Copy the full SHA bf71d65View commit details
Commits on Oct 4, 2024
-
Preparing for merge from rustc
The Miri Cronjob Bot committedOct 4, 2024 Configuration menu - View commit details
-
Copy full SHA for d19bd66 - Browse repository at this point
Copy the full SHA d19bd66View commit details -
The Miri Cronjob Bot committed
Oct 4, 2024 Configuration menu - View commit details
-
Copy full SHA for 7014ae8 - Browse repository at this point
Copy the full SHA 7014ae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc88a6a - Browse repository at this point
Copy the full SHA dc88a6aView commit details -
Auto merge of rust-lang#3938 - rust-lang:rustup-2024-10-04, r=RalfJung
Automatic Rustup
Configuration menu - View commit details
-
Copy full SHA for 6602a23 - Browse repository at this point
Copy the full SHA 6602a23View commit details -
Configuration menu - View commit details
-
Copy full SHA for d00b754 - Browse repository at this point
Copy the full SHA d00b754View commit details -
Auto merge of rust-lang#3895 - TDecking:gfni, r=RalfJung
Implement LLVM x86 gfni intrinsics
Configuration menu - View commit details
-
Copy full SHA for f7400c3 - Browse repository at this point
Copy the full SHA f7400c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f46e162 - Browse repository at this point
Copy the full SHA f46e162View commit details
Commits on Oct 5, 2024
-
remove outdated contribution direction
Signed-off-by: onur-ozkan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 05f7b09 - Browse repository at this point
Copy the full SHA 05f7b09View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0e6758 - Browse repository at this point
Copy the full SHA d0e6758View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cd0f7c - Browse repository at this point
Copy the full SHA 0cd0f7cView commit details -
pthread mutex: better error in reentrant-locking-UB, also test PTHREA…
…D_MUTEX_INITIALIZER
Configuration menu - View commit details
-
Copy full SHA for 1553805 - Browse repository at this point
Copy the full SHA 1553805View commit details -
Auto merge of rust-lang#3943 - RalfJung:pthread-mutex-reentrant, r=Ra…
…lfJung pthread mutex: better error in reentrant-locking-UB Also test reentrant locking of PTHREAD_MUTEX_INITIALIZER
Configuration menu - View commit details
-
Copy full SHA for eb97047 - Browse repository at this point
Copy the full SHA eb97047View commit details -
Auto merge of rust-lang#3940 - rust-lang:refutable_slice, r=RalfJung
Prefer refutable slice patterns over len check + index op Just something I noticed while reviewing other PRs We do it for shim arguments almost everywhere, but when the size is not statically known, we didn't use the helpers as they rely on array ops. But we can avoid a len check followed by several index ops by just using a refutable slice pattern with `let else`. The pattern is so common, it seems almost worth a dedicated macro
Configuration menu - View commit details
-
Copy full SHA for 3b418b1 - Browse repository at this point
Copy the full SHA 3b418b1View commit details -
Rollup merge of rust-lang#130428 - ink-feather-org:stabilize-const-sp…
…lit-at-mut, r=RalfJung Stabilize `const_slice_split_at_mut` and `const_slice_first_last_chunk` Stabilizes rust-lang#101804 and the remainder of rust-lang#111774. FCP proposed in the tracking issue. Requires rust-lang#130403 (or it would need a rustc_allow_const_fn_unstable for it) Stabilized const API: ```rust // slice impl [T] { pub const fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T]); pub const fn split_at_mut_unchecked(&mut self, mid: usize) -> (&mut [T], &mut [T]); pub const fn split_at_mut_checked(&mut self, mid: usize) -> Option<(&mut [T], &mut [T])>; pub const fn first_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>; pub const fn last_chunk_mut<const N: usize>(&mut self) -> Option<&mut [T; N]>; pub const fn split_first_chunk_mut<const N: usize>(&mut self) -> Option<(&mut [T; N], &mut [T])>; pub const fn split_last_chunk_mut<const N: usize>(&mut self) -> Option<(&mut [T; N], &mut [T])>; } ``` Closes rust-lang#101804 Closes rust-lang#111774 cc `@RalfJung`
Configuration menu - View commit details
-
Copy full SHA for 386a0ba - Browse repository at this point
Copy the full SHA 386a0baView commit details -
Rollup merge of rust-lang#131094 - joboet:lazy_once_box, r=ibraheemdev
std: replace `LazyBox` with `OnceBox` This PR replaces the `LazyBox` wrapper used to allocate the pthread primitives with `OnceBox`, which has a more familiar API mirroring that of `OnceLock`. This cleans up the code in preparation for larger changes like rust-lang#128184 (from which this PR was split) and allows some neat optimizations, like avoid an acquire-load of the allocation pointer in `Mutex::unlock`, where the initialization of the allocation must have already been observed. Additionally, I've gotten rid of the TEEOS `Condvar` code, it's just a duplicate of the pthread one anyway and I didn't want to repeat myself.
Configuration menu - View commit details
-
Copy full SHA for 92beb42 - Browse repository at this point
Copy the full SHA 92beb42View commit details -
Rollup merge of rust-lang#131256 - RalfJung:f16-f128-const, r=ibrahee…
…mdev move f16/f128 const fn under f16/f128 feature gate The `*_const` features were added to work around rust-lang#129656, which should not be needed any more.
Configuration menu - View commit details
-
Copy full SHA for cb5bb13 - Browse repository at this point
Copy the full SHA cb5bb13View commit details -
Rollup merge of rust-lang#131278 - onur-ozkan:update-outdated-doc, r=…
…Kobzol remove outdated contribution direction
Configuration menu - View commit details
-
Copy full SHA for 1bd61bb - Browse repository at this point
Copy the full SHA 1bd61bbView commit details -
Rollup merge of rust-lang#131286 - RalfJung:miri-sync, r=RalfJung
Miri subtree update r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 72acacf - Browse repository at this point
Copy the full SHA 72acacfView commit details