From 990fa899dbefad4ef96b4f3bd5990adddf8a3785 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 3 Aug 2023 14:22:49 -0700 Subject: [PATCH] rm debug panic --- tokio/src/runtime/scheduler/multi_thread_alt/queue.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tokio/src/runtime/scheduler/multi_thread_alt/queue.rs b/tokio/src/runtime/scheduler/multi_thread_alt/queue.rs index ff843abecf4..e41e9fdb3a6 100644 --- a/tokio/src/runtime/scheduler/multi_thread_alt/queue.rs +++ b/tokio/src/runtime/scheduler/multi_thread_alt/queue.rs @@ -129,10 +129,6 @@ impl Local { // safety: this is the **only** thread that updates this cell. let mut tail = unsafe { self.inner.tail.unsync_load() }; - if real.wrapping_sub(steal) >= 4 { - panic!("steal={}; real={}; tail={}", steal, real, tail); - } - if tail.wrapping_sub(steal) <= (self.inner.buffer.len() - len) as UnsignedShort { // Yes, this if condition is structured a bit weird (first block // does nothing, second returns an error). It is this way to match