We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b0b8d commit 68bc1afCopy full SHA for 68bc1af
fuzz/fuzz_targets/chaos.rs
@@ -117,4 +117,8 @@ fn fuzz(size: u16, actions: Vec<Action>) {
117
heap.deallocate(ptr, layout);
118
}
119
120
+
121
+ // make sure we can allocate the full heap (no fragmentation)
122
+ let full = Layout::from_size_align(heap.size(), 1).unwrap();
123
+ assert!(heap.allocate_first_fit(full).is_ok());
124
0 commit comments