Skip to content

Commit

Permalink
rm debug panic
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche committed Aug 3, 2023
1 parent d02b59b commit 990fa89
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tokio/src/runtime/scheduler/multi_thread_alt/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ impl<T> Local<T> {
// 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
Expand Down

0 comments on commit 990fa89

Please sign in to comment.