We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa74c9 commit 865de08Copy full SHA for 865de08
tokio/src/runtime/task/list.rs
@@ -194,7 +194,8 @@ impl<S: 'static> OwnedTasks<S> {
194
/// nodes in the intrusive linked list will diminish. Furthermore,
195
/// the construction time of the sharded list will also increase with a higher number of shards.
196
///
197
- /// For the above reasons, we set a maximum value for the shared list size `MAX_SHARED_LIST_SIZE`.
+ /// Due to the above reasons, we set a maximum value for the shared list size,
198
+ /// denoted as `MAX_SHARED_LIST_SIZE`.
199
fn gen_shared_list_size(num_cores: usize) -> usize {
200
const MAX_SHARED_LIST_SIZE: usize = 1 << 16;
201
let mut size = 1;
0 commit comments