This commit is contained in:
Carl Lerche
2023-06-21 01:06:25 +00:00
parent bc5128f255
commit 6546b21581
3 changed files with 4 additions and 1 deletions
@@ -1,7 +1,6 @@
use crate::runtime::{Config, MetricsBatch, WorkerMetrics};
use std::cmp;
use std::f32::consts::E;
use std::time::{Duration, Instant};
/// Per-worker statistics. This is used for both tuning the scheduler and
@@ -826,6 +826,9 @@ impl Worker {
#[cfg(loom)]
const ROUNDS: usize = 1;
debug_assert!(core.lifo_slot.is_none());
debug_assert!(core.run_queue.is_empty());
if !self.transition_to_searching(cx, core) {
return None;
}
+1
View File
@@ -29,6 +29,7 @@ use std::task::{Context, Poll, Waker};
/// Any changes to the layout of this struct _must_ also be reflected in the
/// const fns in raw.rs.
#[repr(C)]
#[repr(align(128))]
pub(super) struct Cell<T: Future, S> {
/// Hot task state data
pub(super) header: Header,