Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80ae3bb

Browse files
committedAug 16, 2024·
less threads
1 parent 6efafe1 commit 80ae3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/std/src/sync/rwlock/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ fn test_downgrade_atomic() {
599599
// itself as no other thread should get in front of it.
600600

601601
// The number of evil writer threads.
602-
const W: usize = 1024;
602+
const W: usize = if cfg!(miri) { 100 } else { 1000 };
603603
let rw = Arc::new(RwLock::new(0i32));
604604

605605
// Put the lock in write mode, making all future threads trying to access this go to sleep.

0 commit comments

Comments
 (0)
Please sign in to comment.