diff --git a/src/allocator/fixed_size_block.rs b/src/allocator/fixed_size_block.rs index 8b137891..a698e09c 100644 --- a/src/allocator/fixed_size_block.rs +++ b/src/allocator/fixed_size_block.rs @@ -1 +1,9 @@ +/// The block sizes to use. +/// +/// The sizes must each be power of 2 because they are also used as +/// the block alignment (alignments must be always powers of 2). +const BLOCK_SIZES: &[usize] = &[8, 16, 32, 64, 128, 256, 512, 1024, 2048]; +struct ListNode { + next: Option<&'static mut ListNode>, +}