Skip to content

Commit 865de08

Browse files
committed
feat: update comments for gen_shared_list_size
1 parent caa74c9 commit 865de08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tokio/src/runtime/task/list.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ impl<S: 'static> OwnedTasks<S> {
194194
/// nodes in the intrusive linked list will diminish. Furthermore,
195195
/// the construction time of the sharded list will also increase with a higher number of shards.
196196
///
197-
/// For the above reasons, we set a maximum value for the shared list size `MAX_SHARED_LIST_SIZE`.
197+
/// Due to the above reasons, we set a maximum value for the shared list size,
198+
/// denoted as `MAX_SHARED_LIST_SIZE`.
198199
fn gen_shared_list_size(num_cores: usize) -> usize {
199200
const MAX_SHARED_LIST_SIZE: usize = 1 << 16;
200201
let mut size = 1;

0 commit comments

Comments
 (0)