mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:37:34 +00:00
Kernel: Don't assert on OOM in allocate_user_physical_page()
We now give callers a chance to react to OOM situations.
This commit is contained in:
parent
bf7b77e252
commit
43593455db
1 changed files with 0 additions and 2 deletions
|
@ -448,7 +448,6 @@ RefPtr<PhysicalPage> MemoryManager::allocate_user_physical_page(ShouldZeroFill s
|
||||||
if (purged_page_count) {
|
if (purged_page_count) {
|
||||||
klog() << "MM: Purge saved the day! Purged " << purged_page_count << " pages from PurgeableVMObject{" << &purgeable_vmobject << "}";
|
klog() << "MM: Purge saved the day! Purged " << purged_page_count << " pages from PurgeableVMObject{" << &purgeable_vmobject << "}";
|
||||||
page = find_free_user_physical_page();
|
page = find_free_user_physical_page();
|
||||||
ASSERT(page);
|
|
||||||
return IterationDecision::Break;
|
return IterationDecision::Break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -457,7 +456,6 @@ RefPtr<PhysicalPage> MemoryManager::allocate_user_physical_page(ShouldZeroFill s
|
||||||
|
|
||||||
if (!page) {
|
if (!page) {
|
||||||
klog() << "MM: no user physical pages available";
|
klog() << "MM: no user physical pages available";
|
||||||
ASSERT_NOT_REACHED();
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue