github.com/tokio-rs/loom
Concurrency permutation testing tool for Rust.
https://github.com/tokio-rs/loom
2d5f2f3166243f79f385bae623b068f354e2a939 authored over 1 year ago
a282dca1f8b9bc0913969b948bb6247668c390b9 authored over 1 year ago
b8d0cd89ac6a88de61ae1dccd90a1a780f53c012 authored over 1 year ago
96ebec78286510c3be61c2629114869d52623d50 authored over 1 year ago
fd51ef8f9a21d6e4837225c3107393a4fed7b494 authored almost 2 years ago
Add the standard library get_mut() method to Mutex and RwLock. This
provides mutable access wit...
053377ccbc8bc94d88c8144ef6e19e91b68c7366 authored almost 2 years ago
a2f289ebca43e479ac214d1b68d92e2cc553155d authored almost 2 years ago
fa9eb420d88cc790d172be561ada506aeb58e8cd authored almost 2 years ago
These traits are necessary to use the Arc in places that expect AsRef
and Borrow.
Signed-off...
6838e8e7ca7603bbdc239fcdd273e3ec0e0930f4 authored almost 2 years ago0cdd45330ba076855ca850560254092d34f6a542 authored almost 2 years ago
8075e03130db044dcf06358f84075abf82ecb01e authored almost 2 years ago
11d6894534807d289f9fd31864bc3f444d0141ea authored about 2 years ago
This avoids forcing the generator to abort, which is not thread-safe.
465f841c3f6098bb9d47e968c2b74a0241617fa4 authored about 2 years agobcf4e843e2c52f1b41608c2f8f911176f3165db9 authored about 2 years ago
5 threads ought to be enough for anybody.
a4341d00feb3a4301a0ba320a9982f673b917a58 authored about 2 years ago* Hold transient scheduler state in Scheduler::run
Create the scheduler's threads in the stac...
ce8a232610837361c9e7de2dce9ba6342be8ac99 authored about 2 years agoWe depend indirectly on `regex-syntax v0.7.1`, which has MSRV 1.60.0.
a0b154df3e50a3d0918449a4b78c166c65530bd4 authored about 2 years ago16e5e9a0e562cf754ced04ac1a82802b8e492178 authored over 2 years ago
We depend on `scoped-tls 1.0.1`, which has MSRV 1.59
f15f93111d87d87edb7027a9f6355c49aebbb211 authored over 2 years agof673005aa99886672113bf6a91a51666009c5073 authored about 3 years ago
18ca7a154e50e9646d5498486fe74dbda5e1fa53 authored about 3 years ago
2f667034161ffd9b07665257682fb96743c85163 authored about 3 years ago
84600d83b947402324b12e7db1d743bfce9de920 authored about 3 years ago
# 0.5.6 (May 19, 2022)
### Added
- cell: add `UnsafeCell::into_inner` for parity with `std...
d102c10a4bb71d28078b09f42de6abd911ae70fa authored about 3 years ago
PR #151 added a CI job to try and build the documentation, failing on
RustDoc errors. It turned...
The fact that there is a `futures` feature flag and a `block_on` method
was a bit hard to disco...
Fixes #261
I'm not sure if the unsafe destruction path is the best here.
Co-authored-by: ...
a1528bf7ca49c1ab1f94c88acdb07e091065426c authored about 3 years ago
I'm not familiar enough with loom to judge if this is the right way to
do it, but at least it s...
This branch re-enables the `Arc::strong_count` API method, which
previously panicked as it was ...
fd6fee9e1e11066d047f51e448dafe062f5e7898 authored about 3 years ago
# 0.5.5 (May 10, 2022)
### Added
- sync: Add `Arc::from_std` without `T: Sized` bound (#22...
fdbaa7ae69027d597204b9e34587d163a9b32070 authored about 3 years ago
Currently, Loom publishes a GitHub release when publishing a new version
of the crate. However,...
This commit adds a `tracing` span with the current model's iteration
that's entered every time ...
## Motivation
Currently, loom's mock `Arc` will track the source code location where
the `Ar...
This branch makes a few minor improvements to how Loom uses `tracing` to
generate `LOOM_LOG` ou...
14808f35a301048e18acc6a2560a2a240c8e8928 authored about 3 years ago
* Remove (implicit) `T: Sized` bound from `Arc`
* Remove `Inner` struct from `Arc` as it's not ...
d0c1e7108a0f8e0a397f3ad32a7e7e650b2db71e authored over 3 years ago6d159963a1dafe961478b549a71d1409af712485 authored over 3 years ago
The `LOOM_LOG` variable now sets a `tracing` filter, rather than simply
enabling logging if any...
0b6ecdccca4f7a8088f32c6ec9f03cda8a05858b authored over 3 years ago
3a92448f423c73f616a019cc36276e2fdf488ef6 authored over 3 years ago
3ebe3d1ee16b1c5f09ee3d46a3a621ebee04d6f0 authored over 3 years ago
`?Sized` is easy to forget :P
555b52fdb267964f0950a52be87b0f28c40b054c authored over 3 years ago
Loom will panic if the maximum number of branches is exceeded. If a
type's `Drop` impl performs...
# 0.5.4 (December 3, 2021)
### Added
- cell: Add `ConstPtr` and `MutPtr` RAII guards to `U...
5450fb92efb36973a5e62b4293759fb86d4cd061 authored over 3 years ago
It looks like rustc 1.57.0 got slightly better at finding unused struct
fields and started emit...
This branch adds the ability to access an `UnsafeCell` by returning a
guard that tracks the lif...
This path can trigger if user code accesses synchronization primitives
from outside a Loom exec...
5f0a1ab4e186eacef023e15e0a3105d345b2141b authored over 3 years ago
Currently, `loom`'s mock version of `std::thread` does not provide
mocked `std::thread::park` o...
This branch fixes a big pile of clippy lints. These are mostly not
particularly important, but ...
I guess this unblocks https://github.com/tokio-rs/tokio/pull/4227
Closes #237
96c2ea719c2b8affcc46a2377353ead981d7fe91 authored over 3 years agoCloses #173
e26add9ff35987eaf27a9213c7eb15e9e05c5d64 authored over 3 years ago0d7f0d5a00d80e1c7a78ac6bfa1083b20a0448e1 authored almost 4 years ago
0017bc47e11e728c6c779cf2b914a50e4bb85ec0 authored almost 4 years ago
89c4ba7725a5720ff2072e578e25eed2c829ba61 authored almost 4 years ago
e4bedd9485389516d3ce9c5365c01f2c25863564 authored almost 4 years ago
These are pretty easy to implement as they both move the lock itself, so
there's no concurrency...
4fc1974be4375e601450ed1c437f279c7bf5c65c authored almost 4 years ago
df170f9cacb4218493ef84bad52f2f9b79cf3300 authored almost 4 years ago
ffb26720223ea893caea0cb66f27696d597f0b06 authored almost 4 years ago
8e005a3fa1348e3d0e22d11d61a4988a8ae1bdd5 authored almost 4 years ago
fe00f0fda722eeed6028af6395d734e4aa8c8c6d authored almost 4 years ago
26d0d7ad0a515cdac8c814a3a0df742506ef5a41 authored almost 4 years ago
562211da5978f729e5728667566636c34c9cbc8b authored about 4 years ago
afe2d80f9a5f073b7ab0b1a208f278eeee454765 authored about 4 years ago
54b3f892e1d765c47c5f34667c054513a86fd803 authored over 4 years ago
1e70272e9171892a42cc44ce09398a3b90b598f4 authored over 4 years ago
5c2e4515d929acfbc1c5349226f474fcd42067b2 authored over 4 years ago
ff2cb3d3143faad87c497cc21c32166edb52f6ae authored over 4 years ago
f5a9c8d9897d8733cf97da469208b051f96fda5e authored over 4 years ago
6d7c17bdfaa7f39fe804f07e43b348e8f8ea7ef0 authored over 4 years ago
c0904b9d16f110d868aa7808db450e2ecc2c4e14 authored over 4 years ago
3ee45561f134e237d35ebf9941eb47e081d1c497 authored over 4 years ago
e3c2598b9919f52a415c3dd74c1bdc6b3d44682a authored over 4 years ago
69371258147de36d2f12e7596760321110cc9a66 authored over 4 years ago
5dfe6294a760c0aba8bdb45e6c2256923a0376eb authored over 4 years ago
- Fix broken docs badge
- Update build status badge from azure pipelines to github actions
99748c03e63b440679472d2c63aa596a4fd5e409 authored over 4 years ago
0d25fc0a88b2dd72af22398a722e9dac559b59fd authored over 4 years ago
800d6f2719875b537e705ea1e65555e77c7093aa authored over 4 years ago
ee27957f37f7b247bac1bc43803970b9ef66dd08 authored over 4 years ago
54b2796cffcfb9b698b210a337903844b93812a9 authored over 4 years ago
9398c5dfd45672830d2c44a715c36152be3a93f6 authored over 4 years ago
* Prepare 0.4 and add I variant atomic ints
* Remove publish flase
* Revert back to cfg-if...
5d0d00fdcfd10fd36706e4aaf2a6db239b5e58a0 authored over 4 years ago3ae636d12a700e45d2dce8ea3efb6f9b5b9face9 authored over 4 years ago
7ea08b290799b7e3a70c674092806e1b60a5a92a authored almost 5 years ago
e32e2eb81a927c782a55c682dd72972d78ac5e1a authored almost 5 years ago
Apparently I forgot to check this in on the prior PR (#175)
Co-authored-by: Bryan Donlan <bdo...
573aae500bb918f7a567b29499c47541714fa909 authored almost 5 years agoc96982ac3017a8cc3984650e25b3bf39e5c8e75e authored almost 5 years ago
3889f9029b0a1ead9fc4645cde278c3e25ce5ac5 authored almost 5 years ago
f88c5f55e057b2c8a8e6ae99f9577f39474625a1 authored almost 5 years ago
Looks like a copy/paste error.
73a26b1526ace5aad55dd649d902767151e8a347 authored almost 5 years ago21db3cc153d480c84346267eaa692be5d7b66c65 authored almost 5 years ago
This implements Thread and ThreadId, with the exception of the park() and
unpark() APIs.
Co-...
9a64417bb1f2a3b66c3d6651a102aed46c601397 authored almost 5 years agoHello :crab: , this PR makes minor typo fixes to README & docs.
Thank you for reviewing this ...
73e6c14da41978e7a20e1993c2554a16a3dcb597 authored almost 5 years ago65bd978551a022b1220ac620fd416796f54a406a authored almost 5 years ago
Fixed
- An example in the README failing to compile (#132)
Changed
- Updated `scoped-tls` t...
Signed-off-by: Marc-Antoine Perennou <[email protected]>
2632f929d2ebd0c1998d93e5b9164fca698ba949 authored about 5 years ago