From df5dded911a48b542d9a4f1b5dd59f5263b914eb Mon Sep 17 00:00:00 2001 From: Guillaume Binet Date: Wed, 22 May 2024 15:26:40 -0400 Subject: [PATCH] small cleanup --- copper/src/common.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/copper/src/common.rs b/copper/src/common.rs index 4c5484d60..eea517688 100644 --- a/copper/src/common.rs +++ b/copper/src/common.rs @@ -1,11 +1,9 @@ extern crate alloc; use std::iter::{Chain, Rev}; -use std::mem::replace; use std::slice::{Iter as SliceIter, IterMut as SliceIterMut}; -const MAX_TASKS: usize = 255; -const MAX_CONCURRENT_TASKS: usize = 8; +const MAX_TASKS: usize = 512; #[derive(Debug)] struct CopperLiskMask { @@ -19,7 +17,7 @@ enum CopperListState { BeingSerialized, } -/// A circular buffer-like queue. +/// This structure maintains the entire memory needed by Copper for one process for the inter task communication. #[derive(Debug)] pub struct CopperListsManager { copper_list_states: [CopperListState; N],