Merge branch 'master' into fix_warnings

This commit is contained in:
bjorn3
2017-06-26 14:22:17 +02:00
committed by GitHub
33 changed files with 3396 additions and 225 deletions
+1 -2
View File
@@ -27,7 +27,6 @@ impl<T: FrameAllocator> RecycleAllocator<T> {
for free in self.free.iter() {
count += free.1;
}
println!("Free count: {} in {} entries", count, self.free.len());
count
}
@@ -93,7 +92,7 @@ impl<T: FrameAllocator> FrameAllocator for RecycleAllocator<T> {
if let Some(i) = small_i {
let (address, remove) = {
let free = &mut self.free[i];
free.1 -= 1;
free.1 -= count;
(free.0 + free.1 * 4096, free.1 == 0)
};