sync: remove stale comment (#6406)

This commit is contained in:
M.Amin Rayej 2024-03-17 19:29:10 +03:30 committed by GitHub
parent bd51feac47
commit 5baa8d58ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,13 +243,6 @@ impl<T> Block<T> {
///
/// 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
}