@@ -11,7 +11,7 @@ use std::sync::atomic::{self, AtomicUsize, Ordering};
1111use std:: sync:: Arc ;
1212use std:: task:: { Context , Poll } ;
1313
14- use crossbeam_utils:: { Backoff , CachePadded } ;
14+ use crossbeam_utils:: Backoff ;
1515
1616use crate :: stream:: Stream ;
1717use crate :: sync:: WakerSet ;
@@ -577,7 +577,7 @@ struct Channel<T> {
577577 /// represent the lap. The mark bit in the head is always zero.
578578 ///
579579 /// Messages are popped from the head of the channel.
580- head : CachePadded < AtomicUsize > ,
580+ head : AtomicUsize ,
581581
582582 /// The tail of the channel.
583583 ///
@@ -586,7 +586,7 @@ struct Channel<T> {
586586 /// represent the lap. The mark bit indicates that the channel is disconnected.
587587 ///
588588 /// Messages are pushed into the tail of the channel.
589- tail : CachePadded < AtomicUsize > ,
589+ tail : AtomicUsize ,
590590
591591 /// The buffer holding slots.
592592 buffer : * mut Slot < T > ,
@@ -660,8 +660,8 @@ impl<T> Channel<T> {
660660 cap,
661661 one_lap,
662662 mark_bit,
663- head : CachePadded :: new ( AtomicUsize :: new ( head) ) ,
664- tail : CachePadded :: new ( AtomicUsize :: new ( tail) ) ,
663+ head : AtomicUsize :: new ( head) ,
664+ tail : AtomicUsize :: new ( tail) ,
665665 send_wakers : WakerSet :: new ( ) ,
666666 recv_wakers : WakerSet :: new ( ) ,
667667 stream_wakers : WakerSet :: new ( ) ,
0 commit comments