diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8fd34ce4..14ad34c10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,6 @@ name: CI env: RUSTFLAGS: -Dwarnings - RUST_BACKTRACE: 1 # Change to specific Rust release to pin rust_stable: stable rust_nightly: nightly-2023-05-18 diff --git a/tokio/tests/rt_threaded.rs b/tokio/tests/rt_threaded.rs index fcfec74a3..581bd010d 100644 --- a/tokio/tests/rt_threaded.rs +++ b/tokio/tests/rt_threaded.rs @@ -628,9 +628,15 @@ fn test_tuning() { // Now, hammer the injection queue until the interval drops. let mut n = 0; + let mut i = 0; loop { + i += 1; let curr = interval.load(Relaxed); + if i % 10_000 == 9_999 { + println!("interval={curr}"); + } + if curr <= 8 { n += 1; } else { @@ -652,9 +658,9 @@ fn test_tuning() { let prev = counter.swap(0, Relaxed); interval.store(prev, Relaxed); }); - - std::thread::yield_now(); } + + std::thread::yield_now(); } flag.store(false, Relaxed); @@ -680,9 +686,15 @@ fn test_tuning() { // Now, hammer the injection queue until the interval reaches the expected range. let mut n = 0; + let mut i = 0; loop { + i += 1; let curr = interval.load(Relaxed); + if i % 10_000 == 9_999 { + println!("interval(2)={curr}"); + } + if curr <= 1_000 && curr > 32 { n += 1; } else {