We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 584bb0d + 37030ac commit 05a2dcdCopy full SHA for 05a2dcd
src/tools/miri/tests/pass-dep/concurrency/linux-futex.rs
@@ -235,7 +235,7 @@ fn concurrent_wait_wake() {
235
static mut DATA: i32 = 0;
236
static WOKEN: AtomicI32 = AtomicI32::new(0);
237
238
- let rounds = 50;
+ let rounds = 64;
239
for _ in 0..rounds {
240
unsafe { DATA = 0 }; // Reset
241
// Suppose the main thread is holding a lock implemented using futex...
@@ -267,8 +267,7 @@ fn concurrent_wait_wake() {
267
}
268
});
269
// Increase the chance that the other thread actually goes to sleep.
270
- // (5 yields in a loop seem to make that happen around 40% of the time.)
271
- for _ in 0..5 {
+ for _ in 0..6 {
272
thread::yield_now();
273
274
0 commit comments