From 99fcfc5faeeb0e9a79d5968fb74ba5e4cb2234f5 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Thu, 11 Apr 2024 22:02:44 +0200 Subject: [PATCH] Skip insufficiently large bump alloc regions. --- src/allocator/frame/bump.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/allocator/frame/bump.rs b/src/allocator/frame/bump.rs index 85334b4af6..a911647159 100644 --- a/src/allocator/frame/bump.rs +++ b/src/allocator/frame/bump.rs @@ -62,14 +62,11 @@ impl FrameAllocator for BumpAllocator { for area in self.areas.iter() { if offset < area.size { if area.size - offset < count.data() * A::PAGE_SIZE { - /* // The area may be too small for this alloc request. In that case, skip to the // next area. self.offset += area.size - offset; offset = 0; continue; - */ - return None; } let page_phys = area.base.add(offset);