1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00

Kernel: Remove assertion from Region::commit

We should be able to gracefully fail a commit in low-memory situations.
This commit is contained in:
Tom 2020-09-01 13:39:31 -06:00 committed by Andreas Kling
parent eb1cc5d665
commit 30d36a3ad1

View file

@ -144,7 +144,6 @@ bool Region::commit(size_t page_index)
auto physical_page = MM.allocate_user_physical_page(MemoryManager::ShouldZeroFill::Yes);
if (!physical_page) {
klog() << "MM: commit was unable to allocate a physical page";
ASSERT_NOT_REACHED();
return false;
}
vmobject_physical_page_entry = move(physical_page);