diff --git a/src/libstd/rt/mpmc_bounded_queue.rs b/src/libstd/rt/mpmc_bounded_queue.rs index 8e6ac8f79c717..c0c7d2811364e 100644 --- a/src/libstd/rt/mpmc_bounded_queue.rs +++ b/src/libstd/rt/mpmc_bounded_queue.rs @@ -40,10 +40,14 @@ struct Node { } struct State { + pad0: [u8, ..64], buffer: ~[Node], mask: uint, + pad1: [u8, ..64], enqueue_pos: AtomicUint, + pad2: [u8, ..64], dequeue_pos: AtomicUint, + pad3: [u8, ..64], } struct Queue { @@ -62,10 +66,14 @@ impl State { Node{sequence:AtomicUint::new(i),value:None} }; State{ + pad0: [0, ..64], buffer: buffer, mask: capacity-1, + pad1: [0, ..64], enqueue_pos: AtomicUint::new(0), + pad2: [0, ..64], dequeue_pos: AtomicUint::new(0), + pad3: [0, ..64], } }