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.
2 parents e4b0b8d + 68bc1af commit f7c2d8eCopy full SHA for f7c2d8e
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