Skip to content

Commit 086cca0

Browse files
committed
Don't use loom for bwos stats
1 parent 928ea8f commit 086cca0

File tree

1 file changed

+2
-1
lines changed
  • tokio/src/runtime/scheduler/multi_thread/queue/bwosq/bwosqueue

1 file changed

+2
-1
lines changed

tokio/src/runtime/scheduler/multi_thread/queue/bwosq/bwosqueue/bwos_queue.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ use core::{marker::PhantomPinned, mem::MaybeUninit, pin::Pin, ptr::null};
66

77
#[cfg(feature = "stats")]
88
mod bwsstats {
9-
use crate::loom::sync::atomic::{AtomicUsize, Ordering::Relaxed};
9+
// The statistics don't influence correctness, so don't model them with loom.
1010
use crate::util::cache_padded::CachePadded;
11+
use std::sync::atomic::{AtomicUsize, Ordering::Relaxed};
1112

1213
pub(crate) struct BwsStats {
1314
owner_counter: CachePadded<AtomicUsize>,

0 commit comments

Comments
 (0)