Skip to content

Commit

Permalink
At least allocate a CuList size of a section in the logger. (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin authored Dec 16, 2024
1 parent 64cd809 commit 357dab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/cu29_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,10 @@ pub fn copper_runtime(args: TokenStream, input: TokenStream) -> TokenStream {
let copperlist_stream = _stream_write::<CuList>(
unified_logger.clone(),
_UnifiedLogType::CopperList,
60 * 1024, // FIXME: make this a config
std::mem::size_of::<CuList>() * 64, // FIXME: make this a config
// the 2 sizes are not directly related as we encode the CuList but we can
// assume the encoded size is close or lower than the non encoded one
// This is to be sure we have the size of at least a Culist and some.
);

let runtime = Ok(#name {
Expand Down

0 comments on commit 357dab9

Please sign in to comment.