Skip to content

Commit

Permalink
Set spin limit for conc::hazard::Hazard up to avoid spurious panics…
Browse files Browse the repository at this point in the history
… in debug mode.
  • Loading branch information
ticki committed Jul 20, 2017
1 parent 9b40d80 commit 95088d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conc/src/hazard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ impl Hazard {
BLOCKED => {
// Increment the number of spins.
spins += 1;
debug_assert!(spins < 100_000, "Hazard blocked for 100,000 rounds. Panicking \
as chances are that it will never get unblocked.");
debug_assert!(spins < 100_000_000, "Hazard blocked for 100 millions rounds. \
Panicking as chances are that it will never get unblocked.");

continue;
},
Expand Down

0 comments on commit 95088d8

Please sign in to comment.