From 95088d84a0f654fb41b210df1c3e688b393e2aec Mon Sep 17 00:00:00 2001 From: ticki Date: Wed, 19 Jul 2017 22:47:28 +0200 Subject: [PATCH] Set spin limit for `conc::hazard::Hazard` up to avoid spurious panics in debug mode. --- conc/src/hazard.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conc/src/hazard.rs b/conc/src/hazard.rs index 1810d71..bd5e9d3 100644 --- a/conc/src/hazard.rs +++ b/conc/src/hazard.rs @@ -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; },