From 5baa8d58ecca5f4b5c4fafe8ec030b8d0baa3ced Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Sun, 17 Mar 2024 19:29:10 +0330 Subject: [PATCH] sync: remove stale comment (#6406) --- tokio/src/sync/mpsc/block.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tokio/src/sync/mpsc/block.rs b/tokio/src/sync/mpsc/block.rs index befcfd29e..e81db4472 100644 --- a/tokio/src/sync/mpsc/block.rs +++ b/tokio/src/sync/mpsc/block.rs @@ -243,13 +243,6 @@ impl Block { /// /// This indicates that the block is in its final state and will no longer /// be mutated. - /// - /// # Implementation - /// - /// The implementation walks each slot checking the `ready` flag. It might - /// be that it would make more sense to coalesce ready flags as bits in a - /// single atomic cell. However, this could have negative impact on cache - /// behavior as there would be many more mutations to a single slot. pub(crate) fn is_final(&self) -> bool { self.header.ready_slots.load(Acquire) & READY_MASK == READY_MASK }