We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e839118 commit eca9f14Copy full SHA for eca9f14
crates/wasmtime/src/runtime/vm/gc/enabled/free_list.rs
@@ -860,7 +860,13 @@ mod tests {
860
"still not enough capacity because we won't allocate the zero index"
861
);
862
863
- free_list.add_capacity(ALIGN_USIZE);
+ free_list.add_capacity(1);
864
+ assert!(
865
+ free_list.alloc(layout).unwrap().is_none(),
866
+ "still not enough capacity because allocations are multiples of the alignment"
867
+ );
868
+
869
+ free_list.add_capacity(ALIGN_USIZE - 1);
870
let a = free_list
871
.alloc(layout)
872
.unwrap()
0 commit comments