Skip to content

Commit

Permalink
less threads
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Aug 16, 2024
1 parent 6efafe1 commit 80ae3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sync/rwlock/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ fn test_downgrade_atomic() {
// itself as no other thread should get in front of it.

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

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

0 comments on commit 80ae3bb

Please sign in to comment.