We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efafe1 commit 80ae3bbCopy full SHA for 80ae3bb
library/std/src/sync/rwlock/tests.rs
@@ -599,7 +599,7 @@ fn test_downgrade_atomic() {
599
// itself as no other thread should get in front of it.
600
601
// The number of evil writer threads.
602
- const W: usize = 1024;
+ const W: usize = if cfg!(miri) { 100 } else { 1000 };
603
let rw = Arc::new(RwLock::new(0i32));
604
605
// Put the lock in write mode, making all future threads trying to access this go to sleep.
0 commit comments